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/class-wp-customize-manager.php

    r43174 r43535  
    29882988        $post->post_status = $new_status;
    29892989        wp_transition_post_status( $new_status, $old_status, $post );
     2990
     2991        /** This action is documented in wp-includes/post.php */
     2992        do_action( "edit_post_{$post->post_type}", $post->ID, $post );
    29902993
    29912994        /** This action is documented in wp-includes/post.php */
Note: See TracChangeset for help on using the changeset viewer.