
如何开发和构建WordPress区块样板
do_action( 'render_block_core_template_part_none', $template_part_id, $attributes, $template_part_file_path )
render_block_core_template_part_none: 这个过滤钩子用于确定是否应该使用一个块的核心模板部分。这在你想为一个区块使用自定义模板并防止使用默认模板的情况下很有用。
当请求的区块模板部分不存在于数据库或主题中时,就会触发。
do_action( 'render_block_core_template_part_none', $template_part_id, $attributes, $template_part_file_path );