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



rest_after_insert_{$this->taxonomy} › WordPress动作钩子

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

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

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

Possible hook names include:

  • rest_after_insert_category
  • rest_after_insert_post_tag




源码

do_action( "rest_after_insert_{$this->taxonomy}", $term, $request, true );