post_lock_lost_dialog
Action HookDescription
Fires inside the dialog displayed when a user has lost the post lock.Hook Information
File Location |
wp-admin/includes/post.php
View on GitHub
|
Hook Type | Action |
Line Number | 1932 |
Hook Parameters
Type | Name | Description |
---|---|---|
WP_Post
|
$post
|
Post object. |
Usage Examples
Basic Usage
<?php
// Hook into post_lock_lost_dialog
add_action('post_lock_lost_dialog', 'my_custom_function', 10, 1);
function my_custom_function($post) {
// Your custom code here
}
Source Code Context
wp-admin/includes/post.php:1932
- How this hook is used in WordPress core
<?php
1927 *
1928 * @since 3.6.0
1929 *
1930 * @param WP_Post $post Post object.
1931 */
1932 do_action( 'post_lock_lost_dialog', $post );
1933 ?>
1934 <p><a class="button button-primary wp-tab-last" href="<?php echo esc_url( $sendback ); ?>"><?php echo $sendback_text; ?></a></p>
1935 </div>
1936 <?php
1937 }
PHP Documentation
<?php
/**
* Fires inside the dialog displayed when a user has lost the post lock.
*
* @since 3.6.0
*
* @param WP_Post $post Post object.
*/
Quick Info
- Hook Type: Action
- Parameters: 1
- File: wp-admin/includes/post.php
Related Hooks
Related hooks will be displayed here in future updates.