wpseek.com
WordPress开发者和主题制作者的搜索引擎



render_block_core_template_part_file › WordPress动作钩子

Since5.9.0
已弃用n/a
do_action( 'render_block_core_template_part_file', $template_part_id, $attributes, $template_part_file_path, $content )
参数: (4)
  • (string) $template_part_id The requested template part namespaced to the theme.
    Required: Yes
  • (array) $attributes The block attributes.
    Required: Yes
  • (string) $template_part_file_path Absolute path to the template path.
    Required: Yes
  • (string) $content The template part content.
    Required: Yes
定义在:
文档:

Fires when a block template part is loaded from a template part in the theme.





源码

do_action( 'render_block_core_template_part_file', $template_part_id, $attributes, $template_part_file_path, $content );