ure_edit_posts_access_id_list
filter allows to set/modify a list of posts/pages/custom post types (posts) IDs, according to which “Posts edit access” add-on will restrict the list of posts available for editing to a current user.
Example:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('ure_edit_posts_access_id_list', 'ure_edit_posts_access_set_id_list'); | |
function ure_edit_posts_access_set_id_list($list) { | |
$list .= ',1584'; | |
return $list; | |
} |
Input parameter $list is a string, comma separated list of integers – posts IDs.