wp_register_ability_args
wp_register_ability_args
Appears in: woocommerce.10.5.2, woocommerce.10.5.3, woocommerce.10.6.1, wordpress-6.9, wordpress-6.9.1, wordpress-6.9.2, wordpress-6.9.3, wordpress-6.9.4
Hook Type: filter
Displaying hooks found in version: wordpress-6.9.4apply_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__,