register_ability_category_args

register_ability_category_args

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.10.4.3

apply_filters('register_ability_category_args') is found 1 times:

  • /vendor/wordpress/abilities-api/includes/abilities-api/class-wp-abilities-category-registry.php line 101
    		 *
    		 * @param array<string,mixed> $args The arguments used to instantiate the category.
    		 * @param string              $slug The slug of the category.
    		 */
    		$args = apply_filters( '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(