Filter – Sort Interface – Exclude certain objects from interface
Exclude certain objects from re-order interface.
apto_exclude_posts_from_interface
Since version 3.0
Examples
The following code will exclude the object ID 1169 when sort is 1717
function theme_apto_exclude_posts_from_interface($excludes, $args, $object)
{
if($args['sort_id'] != 1717)
return $excludes;
$excludes[] = 1169;
return $excludes;
}
add_filter('apto_exclude_posts_from_interface', 'theme_apto_exclude_posts_from_interface', 10, 3);
*This code should be used within the theme or a custom plugin.