Skip to content
  • Log In
  • Register
WordPress.org
  • News
  • Download & Extend
    • Get WordPress
    • Themes
    • Patterns
    • Plugins
    • Openverse
    • Mobile
    • Hosting
  • Learn
    • Learn WordPress
    • Documentation
    • Forums
    • WordPress.tv
    • Developers
  • Community
    • Make WordPress
    • WordCamp
    • Meetups
    • Photo Directory
    • Job Board
    • Five for the Future
  • About
    • About WordPress
    • Showcase
    • Gutenberg
    • Enterprise
    • WordPress Swag Store
  • Get WordPress
Get WordPress

Developer Resources

Browse: Home / Reference / wp-includes/block-template.php

_resolve_home_block_template()

Function: Returns the correct template for the site’s home page.

Source: wp-includes/block-template.php:347

Used by 0 functions | Uses 2 functions

_add_template_loader_filters()

Function: Adds necessary filters to use ‘wp_template’ posts instead of theme template files.

Source: wp-includes/block-template.php:14

Used by 0 functions | Uses 3 functions

_resolve_template_for_new_post()

Function: Sets the current WP_Query to return auto-draft posts.

Source: wp-includes/block-template.php:314

Used by 0 functions | Uses 5 functions

locate_block_template()

Function: Finds a block template with equal or higher specificity than a given PHP template file.

Source: wp-includes/block-template.php:48

Used by 1 function | Uses 10 functions

resolve_block_template()

Function: Returns the correct ‘wp_template’ to render for the request template type.

Source: wp-includes/block-template.php:132

Used by 3 functions | Uses 7 functions

_block_template_render_title_tag()

Function: Displays title tag with content, regardless of whether theme has title-tag support.

Source: wp-includes/block-template.php:212

Used by 0 functions | Uses 1 function

get_the_block_template_html()

Function: Returns the markup for the current template.

Source: wp-includes/block-template.php:227

Used by 0 functions | Uses 10 functions

_block_template_viewport_meta_tag()

Function: Renders a ‘viewport’ meta tag.

Source: wp-includes/block-template.php:261

Used by 0 functions | Uses 0 functions

_strip_template_file_suffix()

Function: Strips .php or .html suffix from template file names.

Source: wp-includes/block-template.php:274

Used by 0 functions | Uses 0 functions

_block_template_render_without_post_block_context()

Function: Removes post details from block context when rendering a block template.

Source: wp-includes/block-template.php:288

Used by 0 functions | Uses 0 functions
  • About
  • News
  • Hosting
  • Donate
  • Swag
  • Documentation
  • Developers
  • Get Involved
  • Learn
  • Showcase
  • Plugins
  • Themes
  • Patterns
  • WordCamp
  • WordPress.TV
  • BuddyPress
  • bbPress
  • WordPress.com
  • Matt
  • Privacy
  • Public Code
WordPress.org
WordPress.org
  • Visit our Facebook page
  • Visit our Twitter account
  • Visit our Instagram account
  • Visit our LinkedIn account
Code is Poetry