Community Forum

Matias Larralde
Keymaster
# 4 years, 1 month ago

Hi,

Yes, sorry that I just add this idea.
I actually realized that our custom post types were missing by going to your site.

However, I actually told you, for testing purposes, to edit our plugin files, but this is not a final solution since you’ll lose those modifications when you’ll update our plugin.

So, you should instead create a custom WP Plugin (see our code snippet documentation), and add this code snippet to it. It will change public to true for all our private content types.

I’m actually not sure we’ll change this option to true in the next release, we need to review it first, so you should use the code snippet below to keep this fix working.

function cuar_make_contents_accessibles($args)
{
    $args['public'] = true;
    return $args;

}
add_filter('cuar/private-content/pages/register-post-type-args', 'cuar_make_contents_accessibles');
add_filter('cuar/private-content/files/register-post-type-args', 'cuar_make_contents_accessibles');
add_filter('cuar/private-content/conversations/register-post-type-args', 'cuar_make_contents_accessibles');
add_filter('cuar/private-content/invoices/register-post-type-args', 'cuar_make_contents_accessibles');
add_filter('cuar/private-content/task-lists/register-post-type-args', 'cuar_make_contents_accessibles');
add_filter('cuar/content-container/projects/register-post-type-args', 'cuar_make_contents_accessibles');

As you can see, there is one add_filter line per custom post type. So you can enable them for the post types you need.

See WP Code for more information about this WP public option.