Documentation - Actions / Filters - Filter – Admin – Hide Taxonomy Selection for a sort

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

Filter – Admin – Hide Taxonomy Selection for a sort

The Taxonomy Selection can be hide for certain sort_id or globally, allowing only archive sort type. This can be achieved through the filter
sort-taxonomy-selection

    add_filter('apto/admin/sort-taxonomy-selection', 'apto_sort_taxonomy_selection', 10, 2);
    function apto_sort_taxonomy_selection($display, $sort_ID)
        {
            
            if($sort_ID ==  1723)
                {
                    $display    =   FALSE;
                }
                
            return $display;
        }

The above code will make the taxonomy selection area to do not show up.