post_locked_dialog
Fires inside the post locked dialog before the buttons are displayed.
Usage
add_action( 'post_locked_dialog', 'wp_kama_post_locked_dialog_action', 10, 2 ); /** * Function for `post_locked_dialog` action-hook. * * @param WP_Post $post Post object. * @param WP_User $user The user with the lock for the post. * * @return void */ function wp_kama_post_locked_dialog_action( $post, $user ){ // action... }
Changelog
Since 3.6.0 | Introduced. |
Since 5.4.0 | The $user parameter was added. |
Where the hook is called
wp-admin/includes/post.php 1881
do_action( 'post_locked_dialog', $post, $user );