get_block_theme_folders


get_block_theme_folders ( $theme_stylesheet = null )

Parameters:
  • (string) theme_stylesheet The stylesheet. Default is to leverage the main theme root.
Returns:
  • (string[]) { Folder names used by block themes. @type string $wp_template Theme-relative directory name for block templates. @type string $wp_template_part Theme-relative directory name for block template parts. }
Defined at:

Description

For backward compatibility reasons, block themes might be using block-templates or block-template-parts, this function ensures we fallback to these folders properly.

Related Functions

_get_block_templates_files, _get_block_template_file, get_block_templates, get_block_template, get_block_categories

Top Google Results

User discussions

wpseek mobile