render_block_core_template_part_none

动作钩子
do_action( 'render_block_core_template_part_none', $template_part_id, $attributes, $template_part_file_path )
参数
  • (string) $template_part_id The requested template part namespaced to the theme.
    Required:
  • (array) $attributes The block attributes.
    Required:
  • (string) $template_part_file_path Absolute path to the not found template path.
    Required:
定义位置
相关勾子
render_block_core_template_part_postrender_block_core_template_part_filerender_block_contextpre_get_block_file_templatepre_get_block_template
相关方法
render_block_core_template_partregister_block_core_template_partrender_block_core_post_templaterender_block_core_latest_postsrender_block_core_latest_commentsrender_block_core_comment_template
引入
5.9.0
弃用
-

render_block_core_template_part_none: 这个过滤钩子用于确定是否应该使用一个块的核心模板部分。这在你想为一个区块使用自定义模板并防止使用默认模板的情况下很有用。

当请求的区块模板部分不存在于数据库或主题中时,就会触发。

do_action( 'render_block_core_template_part_none', $template_part_id, $attributes, $template_part_file_path );

常见问题

FAQs
查看更多 >
闪电侠

(工作日 10:00 - 18:30 为您服务)

2025-12-14 07:36:26

您好,无论是售前、售后、意见建议……均可通过联系工单与我们取得联系。

您也可选择聊天工具与我们即时沟通或点击查看:

您的工单我们已经收到,我们将会尽快跟您联系!
取消
选择聊天工具: