wp_insert_link

SummerySummery

Inserts/updates links into/in the database.

Syntax

wp_insert_link( array $linkdata, bool $wp_error = false )

ParametersParameters

$linkdata

(array) (Required) Elements that make up the link to insert.

$wp_error

(bool) (Optional) Whether to return a WP_Error object on failure.

Default value: false

ReturnReturn

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

SourceSource

File: wp-admin/includes/bookmark.php


			

ChangelogChangelog

Changelog
Version Description
2.0.0 Introduced.
Scroll to Top