mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-03 16:50:13 +00:00
Block Editor: Introduce block templates for classic themes.
With this patch, users will be able to create custom block based templates and assign them to specific pages/posts. Themes can also opt-out of this feature Props bernhard-reiter, carlomanf. Fixes #53176. git-svn-id: https://develop.svn.wordpress.org/trunk@51003 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -63,6 +63,8 @@ function get_query_template( $type, $templates = array() ) {
|
||||
|
||||
$template = locate_template( $templates );
|
||||
|
||||
$template = locate_block_template( $template, $type, $templates );
|
||||
|
||||
/**
|
||||
* Filters the path of the queried template by type.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user