Make WordPress Core


Ignore:
Timestamp:
07/03/2021 09:41:02 PM (5 years ago)
Author:
johnbillion
Message:

Docs: Add and correct examples of common names for various dynamic hooks.

See #53581

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php

    r51293 r51327  
    10241024                 *
    10251025                 * They dynamic portion of the hook name, `$this->post_type`, refers to the post type slug.
     1026                 *
     1027                 * Possible hook names include:
     1028                 *
     1029                 *  - `rest_delete_post`
     1030                 *  - `rest_delete_page`
     1031                 *  - `rest_delete_attachment`
    10261032                 *
    10271033                 * @since 4.7.0
    … …  
    25352541                 * post type slug for the controller.
    25362542                 *
     2543                 * Possible hook names include:
     2544                 *
     2545                 *  - `rest_post_item_schema`
     2546                 *  - `rest_page_item_schema`
     2547                 *  - `rest_attachment_item_schema`
     2548                 *
    25372549                 * @since 5.4.0
    25382550                 *
Note: See TracChangeset for help on using the changeset viewer.