Make WordPress Core


Ignore:
Timestamp:
03/07/2021 12:30:38 PM (4 years ago)
Author:
johnbillion
Message:

Docs: Add examples of possible names for various hooks whose name contains a dynamic portion.

This provides greater discoverability of such hooks in search results on the Code Reference site as well as increased clarity when reading the source.

See #50734, #52628

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/async-upload.php

    r49108 r50505  
    120120     * Filters the returned ID of an uploaded attachment.
    121121     *
    122      * The dynamic portion of the hook name, `$type`, refers to the attachment type,
    123      * such as 'image', 'audio', 'video', 'file', etc.
     122     * The dynamic portion of the hook name, `$type`, refers to the attachment type.
     123     *
     124     * Possible hook names include:
     125     *
     126     *  - `async_upload_audio`
     127     *  - `async_upload_file`
     128     *  - `async_upload_image`
     129     *  - `async_upload_video`
    124130     *
    125131     * @since 2.5.0
Note: See TracChangeset for help on using the changeset viewer.