] = 1;
    	} else {
    		++$wp_filters[ $hook_name ];
    	}
    
    	// Do 'all' actions first.
    	if ( isset( $wp_filter['all'] ) ) {
    		$wp_current_filter[] = $hook_name;
    
    		$all_args = func_get_args(); // phpcs:ignore PHPCompatibility.FunctionUse.ArgumentFunctionsReportCurrentValue.NeedsInspection
    		_wp_call_all_hook( $all_args );
    	}
    
    	if ( ! isset( $wp_filter[ $hook_name ] ) ) {
    		if ( isset( $wp_filter['all'] ) ) {
    			array_pop( $wp_current_filter );
    		}
    
    		return $value;
    	}
    
    	if ( ! isset( $wp_filter['all'] ) ) {
    		$wp_current_filter[] = $hook_name;
    	}
    
    	// Pass the value to WP_Hook.
    	array_unshift( $args, $value );
    
    	$filtered = $wp_filter[ $hook_name ]->apply_filters( $value, $args );
    
    	array_pop( $wp_current_filter );
    
    	return $filtered;
    }
    

[ View all references ](https://developer.wordpress.org/reference/files/wp-
includes/plugin.php/) [ View on Trac
](https://core.trac.wordpress.org/browser/tags/6.5/src/wp-
includes/plugin.php#L173) [ View on GitHub
](https://github.com/WordPress/wordpress-develop/blob/6.5/src/wp-
includes/plugin.php#L173-L210)

##  Related

Uses  |  Description   
---|---  
[ _wp_call_all_hook() ](https://developer.wordpress.org/reference/functions/_wp_call_all_hook/) ` wp-includes/plugin.php ` |  Calls the ‘all’ hook, which will process the functions hooked into it.   
Used by  |  Description   
---|---  
[ _wp_filter_font_directory() ](https://developer.wordpress.org/reference/functions/_wp_filter_font_directory/) ` wp-includes/fonts.php ` |  A callback function for use in the [ ‘upload_dir’ ](https://developer.wordpress.org/reference/hooks/upload_dir/) filter.   
[ WP_Block_Type::get_variations() ](https://developer.wordpress.org/reference/classes/wp_block_type/get_variations/) ` wp-includes/class-wp-block-type.php ` |  Get block variations.   
[ WP_Block_Type::get_uses_context() ](https://developer.wordpress.org/reference/classes/wp_block_type/get_uses_context/) ` wp-includes/class-wp-block-type.php ` |  Get block uses context.   
[ WP_Plugin_Dependencies::sanitize_dependency_slugs() ](https://developer.wordpress.org/reference/classes/wp_plugin_dependencies/sanitize_dependency_slugs/) ` wp-includes/class-wp-plugin-dependencies.php ` |  Sanitizes slugs.   
[ wp_is_rest_endpoint() ](https://developer.wordpress.org/reference/functions/wp_is_rest_endpoint/) ` wp-includes/rest-api.php ` |  Checks whether a REST API endpoint request is currently being handled.   
[ WP_Script_Modules::get_src() ](https://developer.wordpress.org/reference/classes/wp_script_modules/get_src/) ` wp-includes/class-wp-script-modules.php ` |  Gets the versioned URL for a script module src.   
[ WP_Textdomain_Registry::get_language_files_from_path() ](https://developer.wordpress.org/reference/classes/wp_textdomain_registry/get_language_files_from_path/) ` wp-includes/class-wp-textdomain-registry.php ` |  Retrieves translation files from the specified path.   
[ WP_REST_Font_Faces_Controller::get_collection_params() ](https://developer.wordpress.org/reference/classes/wp_rest_font_faces_controller/get_collection_params/) ` wp-includes/rest-api/endpoints/class-wp-rest-font-faces-controller.php ` |  Retrieves the query params for the font face collection.   
[ WP_REST_Font_Faces_Controller::prepare_item_for_response() ](https://developer.wordpress.org/reference/classes/wp_rest_font_faces_controller/prepare_item_for_response/) ` wp-includes/rest-api/endpoints/class-wp-rest-font-faces-controller.php ` |  Prepares a single font face output for response.   
[ WP_REST_Font_Families_Controller::get_collection_params() ](https://developer.wordpress.org/reference/classes/wp_rest_font_families_controller/get_collection_params/) ` wp-includes/rest-api/endpoints/class-wp-rest-font-families-controller.php ` |  Retrieves the query params for the font family collection.   
[ WP_REST_Font_Families_Controller::prepare_item_for_re