mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 04:40:26 +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:
@@ -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
|
||||
*/
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user