Skip to content

mc_category_key

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

Filter the category key output in navigation.

Auto-generated Example

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

Parameters

  • string $key Key HTML output.
  • array $categories Categories in key.

Returns

string

Files

apply_filters( 'mc_category_key', $key, $categories )

← All Hooks

Clone this wiki locally