wp_register_ability_category_args
wp_register_ability_category_args
Appears in: wordpress-6.9
Hook Type: filter
Displaying hooks found in version: wordpress-6.9apply_filters('wp_register_ability_category_args') is found 1 times:
- /wp-includes/abilities-api/class-wp-ability-categories-registry.php line 91
* @type array<string, mixed> $meta Optional. Additional metadata for the ability category. * } * @param string $slug The slug of the ability category. */ $args = apply_filters( 'wp_register_ability_category_args', $args, $slug ); try { // WP_Ability_Category::prepare_properties() will throw an exception if the properties are invalid. $category = new WP_Ability_Category( $slug, $args ); } catch ( InvalidArgumentException $e ) { _doing_it_wrong(