This function has been deprecated. Use wp_list_bookmarks() instead.

wp_get_linksbyname( string $category, string $args = '' )

Gets the links associated with the named category.


Description

See also


Parameters

$category

(Required) The category to use.

$args

(Optional)

Default value: ''


Return

(string|null)


Source

File: wp-includes/deprecated.php

function wp_get_linksbyname($category, $args = '') {
	_deprecated_function(__FUNCTION__, 'WP-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' => '',
	);

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

	return wp_list_bookmarks($r);
}


Changelog

Changelog
Version Description
WP-2.1.0 Use wp_list_bookmarks()
WP-1.0.1 Introduced. This function has been deprecated. Use wp_list_bookmarks() instead.