post_locked_dialog action-hook . WP 3.6.0
Fires inside the post locked dialog before the buttons are displayed.
Usage
add_action( 'post_locked_dialog', 'action_function_name_1493', 10, 2 ); function action_function_name_1493( $post, $user ){ // action... }
- $post(WP_Post)
- Post object.
- $user(WP_User)
- The user with the lock for the post.
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 1761
do_action( 'post_locked_dialog', $post, $user );