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.
Source
File: wp-admin/includes/bookmark.php
function add_link() { return edit_link(); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
2.0.0 | Introduced. |