wp_allowed_block_metadata_collection_roots

wp_allowed_block_metadata_collection_roots

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('wp_allowed_block_metadata_collection_roots') is found 1 times:

  • /wp-includes/class-wp-block-metadata-registry.php line 110
    		 * @since 6.7.2
    		 *
    		 * @param string[] $collection_roots List of allowed metadata collection root paths.
    		 */
    		$collection_roots = apply_filters( 'wp_allowed_block_metadata_collection_roots', $collection_roots );
    
    		$collection_roots = array_unique(
    			array_map(
    				static function ( $allowed_root ) {
    					return rtrim( $allowed_root, '/' );
    				},