wp_get_linksbyname( string $category, string $args =  ): string|null

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

Gets the links associated with the named category.

Description

See also

Parameters

$categorystringrequired
The category to use.
$argsstringoptional

Default:''

Return

string|null

Source

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);
}

Changelog

VersionDescription
2.1.0Use wp_list_bookmarks()
1.0.1Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.