post_locked_dialog WordPress Action Hook
If a user attempts to edit a post that is locked by another user, they will be presented with a dialog asking if they would like to take over the post. If the user elects to take over the post, they will be able to edit it and save their changes.
do_action( 'post_locked_dialog', WP_Post $post , WP_User $user ) #
Fires inside the post locked dialog before the buttons are displayed.
Parameters
Source
Changelog
Version | Description |
---|---|
5.4.0 | The $user parameter was added. |
3.6.0 | Introduced. |