wp_get_linksbyname

Definition:
function wp_get_linksbyname($category, $args = '') {}

Gets the links associated with the named category.

Parameters

  • string $category: The category to use.
  • string $args

Source code

function wp_get_linksbyname($category, $args = '') {

	_deprecated_function(__FUNCTION__, '2.1', '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);

}

3709

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: