add_link() WordPress Function

The add_link() function enables you to add a link to your WordPress site. This function can be used in conjunction with the add_menu() function to add a link to your menu.

add_link() #

Add a link to using values provided in $_POST.


Return

(int|WP_Error) Value 0 or WP_Error on failure. The link ID on success.


Top ↑

Source

File: wp-admin/includes/bookmark.php

function add_link() {
	return edit_link();
}


Top ↑

Changelog

Changelog
VersionDescription
2.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.