This custom filter allows to set restriction model “Allow” (1) or “Block” (2) for the posts/pages edit restrictions add-on:
add_filter('ure_edit_posts_access_restriction_type', 'ure_edit_posts_access_set_restriction_type'); function ure_edit_posts_access_set_restriction_type($restriction_type) { // $restriction_type = 1; // Allow $restriction_type = 2; // Block return $restriction_type; } |