allowed_block_types

allowed_block_types

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-5.7.2

apply_filters('allowed_block_types') is found 1 times:

  • /wp-admin/edit-form-blocks.php line 162
     * @param bool|array $allowed_block_types Array of block type slugs, or
     *                                        boolean to enable/disable all.
     * @param WP_Post    $post                The post resource data.
     */
    $allowed_block_types = apply_filters( 'allowed_block_types', true, $post );
    
    /*
     * Get all available templates for the post/page attributes meta-box.
     * The "Default template" array element should only be added if the array is
     * not empty so we do not trigger the template select element without any options
     * besides the default value.