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



rest_after_insert_{$this->post_type} ›

Since5.0.0
已弃用n/a
do_action( "rest_after_insert_{$this->post_type}", $post, $request, true )
参数: (3)
  • (WP_Post) $post Inserted or updated post object.
    Required: Yes
  • (WP_REST_Request) $request Request object.
    Required: Yes
  • (bool) $creating True when creating a post, false when updating.
    Required: Yes
定义在:
文档:

Fires after a single post is completely created or updated via the REST API.

The dynamic portion of the hook name, $this->post_type, refers to the post type slug.





源码

do_action( "rest_after_insert_{$this->post_type}", $post, $request, true );