Filter – Sort Interface – Exclude certain objects from interface

Share on FacebookTweet about this on TwitterShare on Google+Share on LinkedInPrint this page

Exclude certain objects from re-order interface.

Since version 3.0


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.

API Index