W3cubDocs

/WordPress

do_action( 'post_locked_dialog', WP_Post $post, WP_User $user )

Fires inside the post locked dialog before the buttons are displayed.

Parameters

$post

(WP_Post) Post object.

$user

(WP_User) The user with the lock for the post.

Source

File: wp-admin/includes/post.php

View on Trac

Changelog

Version Description
5.4.0 The $user parameter was added.
3.6.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/post_locked_dialog