Skip to content

mc_category_selector

github-actions[bot] edited this page Jun 3, 2026 · 5 revisions

Filter the HTML for the category filter dropdown in navigation elements.

Auto-generated Example

add_filter(
   'mc_category_selector',
    function(
        string $toggle,
        array $categories
    ) {
        // Your code here.
        return $toggle;
    },
    10,
    2
);

Parameters

  • string $toggle HTML output for control.
  • array $categories Available categories.

Returns

string

Files

apply_filters( 'mc_category_selector', $output, $categories )

← All Hooks

Clone this wiki locally