Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Filter custom block templates with PHP
This method calls get_block_templates once and uses block template properties directly for filtering. This way, we can avoid hitting the database for each public post type. The previous method is useful when we already know the current post type we request templates for, like when using REST API. Follows [52334]. See #54335. Props mamaduka, youknowriad. Built from https://develop.svn.wordpress.org/trunk@52365 git-svn-id: http://core.svn.wordpress.org/trunk@51957 1a063a9b-81f0-0310-95a4-ce76da25c4cd
- Loading branch information