Make WordPress Core


Ignore:
Timestamp:
09/21/2021 06:19:19 PM (3 years ago)
Author:
johnbillion
Message:

Docs: Document some more common names for dynamic hooks and standardise the phrasing used.

Fixes #53581

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/comment.php

    r50641 r51837  
    18271827         * refer to the old and new comment statuses, respectively.
    18281828         *
     1829         * Possible hook names include:
     1830         *
     1831         *  - `comment_unapproved_to_approved`
     1832         *  - `comment_spam_to_approved`
     1833         *  - `comment_approved_to_unapproved`
     1834         *  - `comment_spam_to_unapproved`
     1835         *  - `comment_unapproved_to_spam`
     1836         *  - `comment_approved_to_spam`
     1837         *
    18291838         * @since 2.7.0
    18301839         *
     
    18391848     * refer to the new comment status, and the type of comment, respectively.
    18401849     *
    1841      * Typical comment types include an empty string (standard comment), 'pingback',
    1842      * or 'trackback'.
     1850     * Typical comment types include 'comment', 'pingback', or 'trackback'.
     1851     *
     1852     * Possible hook names include:
     1853     *
     1854     *  - `comment_approved_comment`
     1855     *  - `comment_approved_pingback`
     1856     *  - `comment_approved_trackback`
     1857     *  - `comment_unapproved_comment`
     1858     *  - `comment_unapproved_pingback`
     1859     *  - `comment_unapproved_trackback`
     1860     *  - `comment_spam_comment`
     1861     *  - `comment_spam_pingback`
     1862     *  - `comment_spam_trackback`
    18431863     *
    18441864     * @since 2.7.0
Note: See TracChangeset for help on using the changeset viewer.