WPDev.one
Core Function
View Source on Trac ↗

wp_set_link_cats()

wp_set_link_cats( mixed $link_id = 0, mixed $link_categories = array() )

Updates link with the specified link categories.

Parameters 0 required

Name / Type Description
$link_id
int

ID of the link to update.

$link_categories
int[]

Array of link category IDs to add the link to.

Return Value

(void)
No return value description available.

Function Information

Since Version
2.1.0
Source File
wp-admin/includes/bookmark.php
Advertisement