Home › Forums › Pro Support › Remove WPSP For Non Admin Uses › Reply To: Remove WPSP For Non Admin Uses
February 11, 2019 at 6:21 pm
#7746
Keymaster
Hi there,
Give this a shot:
add_filter( 'register_post_type_args', function( $args, $post_type ) {
if ( 'wp_show_posts' !== $post_type ) {
return $args;
}
$args['capability_type'] = 'manage_options';
return $args;
}, 10, 2 );
Adding PHP: https://docs.wpshowposts.com/article/adding-php/
Let me know 🙂