wp_set_link_cats

SummerySummery

Update link with the specified link categories.

Syntax

wp_set_link_cats( int $link_id, int[] $link_categories = array() )

ParametersParameters

$link_id

(int) (Required) ID of the link to update.

$link_categories

(int[]) (Optional) Array of link category IDs to add the link to.

Default value: array()

SourceSource

File: wp-admin/includes/bookmark.php


			

ChangelogChangelog

Changelog
Version Description
2.1.0 Introduced.
Scroll to Top