pbs_is_editable_by_user
PBS >= 4.3
Override the decision whether or not to load PBS in the front-end and allow the user to use PBS to edit the post.
Parameters
$is_editable
Boolean. True if the post should be editable with PBS. False otherwise
Example
Disallow portfolio post_types to be editable with PBS
add_filter( 'pbs_is_editable_by_user', 'disallow_portfolios' );
function disallow_portfolios( $is_editable ) {
global $post;
if ( $post ) {
if ( 'portfolio' === get_post_type( $post ) ) {
return false;
}
}
return $is_editable;
}