Filters the ability category arguments before they are validated and used to instantiate the ability category.
\array<string,$labelstring
$descriptionstring
mixedarray<string,
$slugstringwp-includes/abilities-api/class-wp-ability-categories-registry.php:91WP_Ability_Categories_Registry::register() * @type string $label The human-readable label for the ability category. * @type string $description A description of the ability category. * @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(Introduced in 6.9.0. Unchanged from 6.9.7 through 7.1.0.
Signature, return type and hooks compared across 3 parsed releases.