Skip to content

mc_category_list

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

Filter the categories available in a category selection interface.

Auto-generated Example

add_filter(
   'mc_category_list',
    function(
        array $cats,
        object $data
    ) {
        // Your code here.
        return $cats;
    },
    10,
    2
);

Parameters

  • array $cats Array of categories.
  • object $data An object with selected category data.

Returns

array

Files

apply_filters( 'mc_category_list', $cats, $data )

← All Hooks

Clone this wiki locally