wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes
rest_insert_{$this->post_type} › Les Actions WordPress
Depuis4.7.0
Dépréciéen/a
› do_action( "rest_insert_{$this->post_type}", $post, $request, true )
Paramètres: (3) |
|
Défini(e) dans: | |
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.
Possible hook names include:
rest_insert_post
rest_insert_page
rest_insert_attachment
Fonctions en relation: set_post_type, create_initial_post_types, get_post_type, wp_insert_post, rest_get_route_for_post_type_items, _insert_into_post_button