wp_insert_link


wp_insert_link ( $linkdata, $wp_error = false )

Parameters:
  • (array) $linkdata Elements that make up the link to insert.
  • (bool) $wp_error Optional. Whether to return a WP_Error object on failure. Default false.
Returns:
  • (int|WP_Error) Value 0 or WP_Error on failure. The link ID on success.
Defined at:

Description

Inserts/updates links into/in the database.

Related Functions

wp_insert_site, wp_get_links, wp_installing, wp_set_link_cats, wp_insert_post

Top Google Results

User discussions

wpseek mobile