register_ability_args

register_ability_args

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.10.4.3

apply_filters('register_ability_args') is found 1 times:

  • /vendor/wordpress/abilities-api/includes/abilities-api/class-wp-abilities-registry.php line 100
    		 *
    		 * @param array<string,mixed> $args The arguments used to instantiate the ability.
    		 * @param string              $name The name of the ability, with its namespace.
    		 */
    		$args = apply_filters( 'register_ability_args', $args, $name );
    
    		// Validate category exists if provided (will be validated as required in WP_Ability).
    		if ( isset( $args['category'] ) ) {
    			$category_registry = WP_Abilities_Category_Registry::get_instance();
    			if ( ! $category_registry->is_registered( $args['category'] ) ) {
    				_doing_it_wrong(