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:
johnbillion
2021-07-03 21:41:02 +00:00
parent 35cf314f9a
commit 5383af8483
10 changed files with 71 additions and 6 deletions
+1 -3
View File
@@ -578,9 +578,7 @@ function wp_iframe( $content_func, ...$args ) {
* (pre-3.5.0) media upload popup.
*
* The dynamic portion of the hook, `$content_func`, refers to the form
* callback for the media upload type. Possible values include
* 'media_upload_type_form', 'media_upload_type_url_form', and
* 'media_upload_library_form'.
* callback for the media upload type.
*
* @since 2.5.0
*/
+6
View File
@@ -1582,6 +1582,12 @@ function register_and_do_post_meta_boxes( $post ) {
*
* The dynamic portion of the hook, `$post_type`, refers to the post type of the post.
*
* Possible hook names include:
*
* - `add_meta_boxes_post`
* - `add_meta_boxes_page`
* - `add_meta_boxes_attachment`
*
* @since 3.0.0
*
* @param WP_Post $post Post object.