mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 07:40:07 +00:00
Docs: Docs on docs. Further improve documentation of known return types, plus other docs fixes.
See #48303 git-svn-id: https://develop.svn.wordpress.org/trunk@46662 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -117,12 +117,12 @@ function wp_delete_link( $link_id ) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves the link categories associated with the link specified.
|
||||
* Retrieves the link category IDs associated with the link specified.
|
||||
*
|
||||
* @since 2.1.0
|
||||
*
|
||||
* @param int $link_id Link ID to look up
|
||||
* @return array The requested link's categories
|
||||
* @param int $link_id Link ID to look up.
|
||||
* @return int[] The IDs of the requested link's categories.
|
||||
*/
|
||||
function wp_get_link_cats( $link_id = 0 ) {
|
||||
$cats = wp_get_object_terms( $link_id, 'link_category', array( 'fields' => 'ids' ) );
|
||||
|
||||
Reference in New Issue
Block a user