wordpress | April 22nd, 2013

Add this code to Functions.php file in theme folder.

$subRole = get_role( ’subscriber’ );
$subRole->add_cap( ’read_private_posts’ );
$subRole->add_cap( ’read_private_pages’ );

 

and make post or page in Private mode.

There are no comments yet, add one below.

Leave a Comment


You must be logged in to post a comment.