delete_link
Fires before a link is deleted.
Usage
add_action( 'delete_link', 'wp_kama_delete_link_action' );
/**
* Function for `delete_link` action-hook.
*
* @param int $link_id ID of the link to delete.
*
* @return void
*/
function wp_kama_delete_link_action( $link_id ){
// action...
}
- $link_id(int)
- ID of the link to delete.
Changelog
| Since 2.0.0 | Introduced. |
Where the hook is called
delete_link
wp-admin/includes/bookmark.php 98
do_action( 'delete_link', $link_id );