Core Function
View Source on Trac ↗ _get_block_templates_paths()
_get_block_templates_paths( mixed $base_directory ) Finds all nested template part file paths in a theme's directory.
Parameters 1 required
| Name / Type | Description |
|---|---|
| $base_directory string | The theme's file path. Required |
Return Value
(string[])
A list of paths to all template part files.
Function Information
Since Version
5.9.0
Source File
wp-includes/block-template-utils.php
Advertisement