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

wp_get_linksbyname() WordPress Function

The wp_get_linksbyname() function is used to get the links associated with a given link category name.

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

Gets the links associated with the named category.


Description

Top ↑

See also


Top ↑

Parameters

$category

(string)(Required)The category to use.

$args

(string)(Optional)

Default value: ''


Top ↑

Return

(string|null)


Top ↑

Source

File: wp-includes/deprecated.php

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


Top ↑

Changelog

Changelog
VersionDescription
2.1.0Use wp_list_bookmarks()
1.0.1Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More