mateusneves
10/4/2016 - 2:25 PM

Private posts for Subscribers

Private posts for Subscribers

/**
 * Private Posts visible to Subscribers
 * Run once
 *
 */
function be_private_posts_subscribers() {
  $subRole = get_role( 'subscriber' );
	$subRole->add_cap( 'read_private_posts' );
}
add_action( 'init', 'be_private_posts_subscribers' );