delete_link action-hookWP 2.0.0

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

wp_delete_link()
delete_link
wp-admin/includes/bookmark.php 98
do_action( 'delete_link', $link_id );

Where the hook is used in WordPress

Usage not found.