Make WordPress Core


Ignore:
Timestamp:
07/25/2018 08:56:39 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Posts, Post Types: Introduce edit_post_{$post->post_type} hook.

The hook fires before the general edit_post hook and has the same parameters.

It also complements the save_post_{$post->post_type} hook added in [25050].

Props Mte90, garrett-eclipse.
Fixes #34706.

File:
1 edited

Legend:

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

    r43467 r43535  
    24722472     */
    24732473    do_action( 'wp_update_comment_count', $post_id, $new, $old );
     2474
     2475    /** This action is documented in wp-includes/post.php */
     2476    do_action( "edit_post_{$post->post_type}", $post_id, $post );
     2477
    24742478    /** This action is documented in wp-includes/post.php */
    24752479    do_action( 'edit_post', $post_id, $post );
Note: See TracChangeset for help on using the changeset viewer.