wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



rest_insert_{$this->post_type} › Działania WordPress Hooks

Od4.7.0
Przestarzałyn/a
do_action( "rest_insert_{$this->post_type}", $post, $request, true )
Parametry: (3)
  • (WP_Post) $post Inserted or updated post object.
    Wymagane: Tak
  • (WP_REST_Request) $request Request object.
    Wymagane: Tak
  • (bool) $creating True when creating a post, false when updating.
    Wymagane: Tak
Zdefiniowane na:
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




Źródło

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