Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




wp_get_link_cats [ WordPress Function ]

wp_get_link_cats ( $link_id = 0 )
Parameters:
  • (int) $link_id Link ID to look up
Returns:
  • (array) The requested link's categories
Defined at:



Retrieves the link categories associated with the link specified.

Source


<?php
function wp_get_link_cats$link_id ) {

    
$cats wp_get_object_terms$link_id'link_category', array('fields' => 'ids') );

    return 
array_unique$cats );
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

Kullanýcý Tartýþmalarý [ wordpress.org ]

- Bulunamadý -

Yeni bir konu yaz ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics