Make WordPress Core

Changeset 53170


Ignore:
Timestamp:
04/13/2022 03:02:43 AM (4 years ago)
Author:
peterwilsoncc
Message:

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.

Location:
trunk/src/wp-includes
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-post-type.php

    r53126 r53170  
    446446                 * Filters the arguments for registering a specific post type.
    447447                 *
    448                  * The dynamic portion of the filter name, `$this->name`, refers to the post type key.
     448                 * The dynamic portion of the filter name, `$post_type`, refers to the post type key.
     449                 *
     450                 * Possible hook names include:
     451                 *
     452                 *  - `register_post_post_type_args`
     453                 *  - `register_page_post_type_args`
    449454                 *
    450455                 * @since 6.0.0
  • trunk/src/wp-includes/class-wp-taxonomy.php

    r53126 r53170  
    321321                 * Filters the arguments for registering a specific taxonomy.
    322322                 *
    323                  * The dynamic portion of the filter name, `$this->name`, refers to the taxonomy key.
     323                 * The dynamic portion of the filter name, `$taxonomy`, refers to the taxonomy key.
     324                 *
     325                 * Possible hook names include:
     326                 *
     327                 *  - `register_category_taxonomy_args`
     328                 *  - `register_post_tag_taxonomy_args`
    324329                 *
    325330                 * @since 6.0.0
  • trunk/src/wp-includes/post.php

    r53126 r53170  
    17151715         * The dynamic portion of the filter name, `$post_type`, refers to the post type key.
    17161716         *
     1717         * Possible hook names include:
     1718         *
     1719         *  - `registered_post_type_post`
     1720         *  - `registered_post_type_page`
     1721         *
    17171722         * @since 6.0.0
    17181723         *
  • trunk/src/wp-includes/taxonomy.php

    r53126 r53170  
    534534         *
    535535         * The dynamic portion of the filter name, `$taxonomy`, refers to the taxonomy key.
     536         *
     537         * Possible hook names include:
     538         *
     539         *  - `registered_taxonomy_category`
     540         *  - `registered_taxonomy_post_tag`
    536541         *
    537542         * @since 6.0.0
Note: See TracChangeset for help on using the changeset viewer.