delete_link

delete_link

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: wordpress-6.7

do_action('delete_link') is found 1 times:

  • /wp-admin/includes/bookmark.php line 98
    	 * @since 2.0.0
    	 *
    	 * @param int $link_id ID of the link to delete.
    	 */
    	do_action( 'delete_link', $link_id );
    
    	wp_delete_object_term_relationships( $link_id, 'link_category' );
    
    	$wpdb->delete( $wpdb->links, array( 'link_id' => $link_id ) );
    
    	/**