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.

Built from https://develop.svn.wordpress.org/trunk@53170


git-svn-id: http://core.svn.wordpress.org/trunk@52759 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Peter Wilson 2022-04-13 03:04:10 +00:00
parent 4b73e7b87b
commit 74dcee85d0
5 changed files with 23 additions and 3 deletions

View File

@ -445,7 +445,12 @@ final class WP_Post_Type {
/**
* Filters the arguments for registering a specific post type.
*
* The dynamic portion of the filter name, `$this->name`, refers to the post type key.
* The dynamic portion of the filter name, `$post_type`, refers to the post type key.
*
* Possible hook names include:
*
* - `register_post_post_type_args`
* - `register_page_post_type_args`
*
* @since 6.0.0
*

View File

@ -320,7 +320,12 @@ final class WP_Taxonomy {
/**
* Filters the arguments for registering a specific taxonomy.
*
* The dynamic portion of the filter name, `$this->name`, refers to the taxonomy key.
* The dynamic portion of the filter name, `$taxonomy`, refers to the taxonomy key.
*
* Possible hook names include:
*
* - `register_category_taxonomy_args`
* - `register_post_tag_taxonomy_args`
*
* @since 6.0.0
*

View File

@ -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.

View File

@ -534,6 +534,11 @@ function register_taxonomy( $taxonomy, $object_type, $args = array() ) {
*
* The dynamic portion of the filter name, `$taxonomy`, refers to the taxonomy key.
*
* Possible hook names include:
*
* - `registered_taxonomy_category`
* - `registered_taxonomy_post_tag`
*
* @since 6.0.0
*
* @param string $taxonomy Taxonomy slug.

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.0-beta1-53169';
$wp_version = '6.0-beta1-53170';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.