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



render_block_core_template_part_post › WordPress动作钩子

Since5.9.0
已弃用n/a
› do_action( 'render_block_core_template_part_post', $template_part_id, $attributes, $template_part_post, $content )
参数: (4)
  • () template_part_id The requested template part namespaced to the theme.
    Required: Yes
  • () attributes The block attributes.
    Required: Yes
  • () template_part_post The template part post object.
    Required: Yes
  • () content The template part content.
    Required: Yes
定义在:
文档:

Fires when a block template part is loaded from a template post stored in the database.





源码

do_action( 'render_block_core_template_part_post', $template_part_id, $attributes, $template_part_post, $content );