Custom Post Type Support

Custom Post Type Support 

We have now added custom post type support, allowing you to add your custom post types to work with Post Access Manager for better organisation and broader functionality.

This is achieved by using an inbuilt feature using the 'rup_sell_ind_posts_protected_post_types' filter; an example of that is below:

add_filter('rup_sell_ind_posts_protected_post_types', function($post_types) {
$post_types[] = 'test';
$post_types[] = 'custom_post_type_2';
return $post_types;
});

To use this functionality, add a similar snippet to your functions.php or snippet plugin and use version 1.3 or greater


Was this article helpful?