deleted_link
Action HookDescription
Fires after a link has been deleted.Hook Information
File Location |
wp-admin/includes/bookmark.php
View on GitHub
|
Hook Type | Action |
Line Number | 111 |
Hook Parameters
Type | Name | Description |
---|---|---|
int
|
$link_id
|
ID of the deleted link. |
Usage Examples
Basic Usage
<?php
// Hook into deleted_link
add_action('deleted_link', 'my_custom_function', 10, 1);
function my_custom_function($link_id) {
// Your custom code here
}
Source Code Context
wp-admin/includes/bookmark.php:111
- How this hook is used in WordPress core
<?php
106 *
107 * @since 2.2.0
108 *
109 * @param int $link_id ID of the deleted link.
110 */
111 do_action( 'deleted_link', $link_id );
112
113 clean_bookmark_cache( $link_id );
114
115 return true;
116 }
PHP Documentation
<?php
/**
* Fires after a link has been deleted.
*
* @since 2.2.0
*
* @param int $link_id ID of the deleted link.
*/
Quick Info
- Hook Type: Action
- Parameters: 1
- File: wp-admin/includes/bookmark.php
Related Hooks
Related hooks will be displayed here in future updates.