wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



rest_after_insert_{$this->post_type} › Les Actions WordPress

Depuis5.0.0
Dépréciéen/a
› do_action( "rest_after_insert_{$this->post_type}", $post, $request, true )
Paramètres: (3)
  • () post Inserted or updated post object.
    Requis: Oui
  • () request Request object.
    Requis: Oui
  • () creating True when creating a post, false when updating.
    Requis: Oui
Défini(e) dans:
Codex:

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. Possible hook names include: - `rest_after_insert_post` - `rest_after_insert_page` - `rest_after_insert_attachment`




Source

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