wpseek.com
WordPress开发者和主题制作者的搜索引擎
get_linkobjects is deprecated since version 2.1.0!
Alternative: get_bookmarks()
Alternative: get_bookmarks()
get_linkobjects › WordPress Function
Since1.0.1
已弃用2.1.0
› get_linkobjects ( $category = 0, $orderby = 'name', $limit = 0 )
| 参数: (3) |
|
| 查看: | |
| 返回: |
|
| 定义在: |
|
| 文档: |
Gets an array of link objects associated with category n.
Usage: $links = get_linkobjects(1); if ($links) { foreach ($links as $link) { echo ''.$link->link_description.'
源码
function get_linkobjects($category = 0, $orderby = 'name', $limit = 0) {
_deprecated_function( __FUNCTION__, '2.1.0', 'get_bookmarks()' );
$links = get_bookmarks( array( 'category' => $category, 'orderby' => $orderby, 'limit' => $limit ) ) ;
$links_array = array();
foreach ($links as $link)
$links_array[] = $link;
return $links_array;
}