get_block_template

get_block_template

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('get_block_template') is found 1 times:

  • /wp-includes/block-template-utils.php line 1282
    1278
    1279
    1280
    1281
    1282
    1283
    1284
    1285
    1286
    1287
    1288
         * @param WP_Block_Template|null $block_template The found block template, or null if there isn't one.
         * @param string                 $id             Template unique identifier (example: 'theme_slug//template_slug').
         * @param string                 $template_type  Template type. Either 'wp_template' or 'wp_template_part'.
         */
        return apply_filters( 'get_block_template', $block_template, $id, $template_type );
    }
     
    /**
     * Retrieves a unified template object based on a theme file.
     *
     * This is a fallback of get_block_template(), used when no templates are found in the database.

See this hook used in plugins: