wpseek.com
WordPress开发者和主题制作者的搜索引擎



wp_get_linksbyname › WordPress Function

Since1.0.1
已弃用2.1.0
wp_get_linksbyname ( $category, $args = '' )
参数: (2)
  • (string) $category The category to use.
    Required: Yes
  • (string) $args
    Required: No
    默认: (empty)
查看:
返回:
  • (string|null)
定义在:
文档:

Gets the links associated with the named category.



源码

function wp_get_linksbyname($category, $args = '') {
	_deprecated_function(__FUNCTION__, '2.1.0', 'wp_list_bookmarks()');

	$defaults = array(
		'after' => '<br />',
		'before' => '',
		'categorize' => 0,
		'category_after' => '',
		'category_before' => '',
		'category_name' => $category,
		'show_description' => 1,
		'title_li' => '',
	);

	$parsed_args = wp_parse_args( $args, $defaults );

	return wp_list_bookmarks($parsed_args);
}