Advertisements

wp_get_links

Definition:
function wp_get_links($args = '') {}

Gets the links associated with category.

Parameters

  • string $args: a query string

Source code

function wp_get_links($args = '') {

	_deprecated_function( __FUNCTION__, '2.1', 'wp_list_bookmarks()' );



	if ( strpos( $args, '=' ) === false ) {

		$cat_id = $args;

		$args = add_query_arg( 'category', $cat_id, $args );

	}



	$defaults = array(

		'after' => '<br />',

		'before' => '',

		'between' => ' ',

		'categorize' => 0,

		'category' => '',

		'echo' => true,

		'limit' => -1,

		'orderby' => 'name',

		'show_description' => true,

		'show_images' => true,

		'show_rating' => false,

		'show_updated' => true,

		'title_li' => '',

	);



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



	return wp_list_bookmarks($r);

}

3707

Advertisements

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

%d bloggers like this: