• One year ago a snippet was provided by rdellconsulting:

    //Remove meta-tag buttons
    add_filter('tc_category_list', 'rdc_category_list');
    function rdc_category_list($output) {
    return preg_replace('"btn btn-mini"', '""', $output);
    }
    
    add_filter('tc_tag_list', 'rdc_tag_list');
    function rdc_tag_list($output) {
    return preg_replace('"btn btn-mini btn-tag"', '""', $output);
    }

    also listed at the official page: Remove categories and tags buttons in the post metas block

    This seems not to work anymore. Found in Customizr hooks API:

    tc_category_list_class [filter]
    Class attribute of the hierarchical taxonomy terms link (button)
    Value / type : btn btn-mini
    # of filter parameter(s) : 1

    tc_tag_list_class [filter]
    Class attribute of the non-hierarchical taxonomy terms link (button)
    Value / type : btn btn-mini btn-tag
    # of filter parameter(s) : 1

    Source code : inc/parts/class-content-post_metas.php

    This seems to be an example of usage with Customizr 3.2+: Customizing the comments in the Customizr theme.
    I’m too inexperienced in PHP and WP API to get it myself. Thanks for any help.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Snippet remove btn-mini (category, tag, etc.) outdated’ is closed to new replies.