mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 21:00:21 +00:00
Docs: Improve doc blocks for hooks added in [53126].
Fix a variable name and provide examples of the hook names. Follow up to [53126]. Props dlh, pbiron. Fixes #53212. git-svn-id: https://develop.svn.wordpress.org/trunk@53170 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1714,6 +1714,11 @@ function register_post_type( $post_type, $args = array() ) {
|
||||
*
|
||||
* The dynamic portion of the filter name, `$post_type`, refers to the post type key.
|
||||
*
|
||||
* Possible hook names include:
|
||||
*
|
||||
* - `registered_post_type_post`
|
||||
* - `registered_post_type_page`
|
||||
*
|
||||
* @since 6.0.0
|
||||
*
|
||||
* @param string $post_type Post type.
|
||||
|
||||
Reference in New Issue
Block a user