wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema
get_linkobjectsbyname is deprecated since version 2.1.0!
Alternative: Ver página de detalhe para get_bookmarks »" href="https://pt.wpseek.com/function/get_bookmarks/">get_bookmarks()
Alternative: Ver página de detalhe para get_bookmarks »" href="https://pt.wpseek.com/function/get_bookmarks/">get_bookmarks()
get_linkobjectsbyname › WordPress Function
Desde1.0.1
Obsoleto2.1.0
› get_linkobjectsbyname ( $cat_name = "noname", $orderby = 'name', $limit = -1 )
Parâmetros: (3) |
|
Ver: | |
Retorna: |
|
Definido em: |
|
Codex: |
Gets an array of link objects associated with category $cat_name.
$links = get_linkobjectsbyname( 'fred' ); foreach ( $links as $link ) { echo 'Funções relacionadas: get_linksbyname, get_linkobjects, get_linkcatname, wp_get_linksbyname, get_object_subtype
Fonte
function get_linkobjectsbyname($cat_name = "noname" , $orderby = 'name', $limit = -1) { _deprecated_function( __FUNCTION__, '2.1.0', 'get_bookmarks()' ); $cat_id = -1; $cat = get_term_by('name', $cat_name, 'link_category'); if ( $cat ) $cat_id = $cat->term_id; return get_linkobjects($cat_id, $orderby, $limit); }