wphooks.info - add_link

add_link

The hook occurs in the following file:

wp-admin/includes/bookmark.php:
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
		 */
		do_action( 'edit_link', $link_id );
	} else {
		/**
		 * Fires after a link was added to the database.
		 *
		 * @since 2.0.0
		 *
		 * @param int $link_id ID of the link that was added.
		 */
		do_action( 'add_link', $link_id );
	}
	clean_bookmark_cache( $link_id );

	return $link_id;
}

/**
 * Update link with the specified link categories.
 *