wp_register_ability_args
wp_register_ability_args
Appears in: wordpress-6.9
Hook Type: filter
Displaying hooks found in version: wordpress-6.9apply_filters('wp_register_ability_args') is found 1 times:
- /wp-includes/abilities-api/class-wp-abilities-registry.php line 129
* @type string $ability_class Optional. Custom class to instantiate instead of WP_Ability. * } * @param string $name The name of the ability, with its namespace. */ $args = apply_filters( 'wp_register_ability_args', $args, $name ); // Validate ability category exists if provided (will be validated as required in WP_Ability). if ( isset( $args['category'] ) ) { if ( ! wp_has_ability_category( $args['category'] ) ) { _doing_it_wrong( __METHOD__,