Un motore di ricerca WordPress per sviluppatori e autori di temi



rest_insert_{$this->post_type} ›

Da4.7.0
Deprecaton/a
do_action( "rest_insert_{$this->post_type}", $post, $request, true )
Parametri: (3)
  • (WP_Post) $post Inserted or updated post object.
    Richiesto:
  • (WP_REST_Request) $request Request object.
    Richiesto:
  • (bool) $creating True when creating a post, false when updating.
    Richiesto:
Definito a:
Codex:

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

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





Sorgenti

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