Make WordPress Core


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.

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.