Add a link to using values provided in $_POST.

Signature

add_link()

Return

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

Source

function add_link() {
	return edit_link();
}
WP Trac GitHub

Link here