mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Docs: Add and correct examples of common names for various dynamic hooks.
See #53581 git-svn-id: https://develop.svn.wordpress.org/trunk@51327 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -4411,6 +4411,11 @@ function wp_insert_post( $postarr, $wp_error = false, $fire_after_hooks = true )
|
||||
* The dynamic portion of the hook name, `$post->post_type`, refers to
|
||||
* the post type slug.
|
||||
*
|
||||
* Possible hook names include:
|
||||
*
|
||||
* - `edit_post_post`
|
||||
* - `edit_post_page`
|
||||
*
|
||||
* @since 5.1.0
|
||||
*
|
||||
* @param int $post_ID Post ID.
|
||||
@@ -4448,6 +4453,11 @@ function wp_insert_post( $postarr, $wp_error = false, $fire_after_hooks = true )
|
||||
* The dynamic portion of the hook name, `$post->post_type`, refers to
|
||||
* the post type slug.
|
||||
*
|
||||
* Possible hook names include:
|
||||
*
|
||||
* - `save_post_post`
|
||||
* - `save_post_page`
|
||||
*
|
||||
* @since 3.7.0
|
||||
*
|
||||
* @param int $post_ID Post ID.
|
||||
|
||||
Reference in New Issue
Block a user