get_linkobjects

Definition:
function get_linkobjects($category = 0, $orderby = 'name', $limit = 0) {}

Gets an array of link objects associated with category n.
Usage:

Parameters

  • int $category: The category to use. If no category supplied uses all
  • string $orderby: the order to output the links. E.g. ‘id’, ‘name’, ‘url’, ‘description’, or ‘rating’. Or maybe owner. If you start the name with an underscore the order will be reversed. You can also specify ‘rand’ as the order which will return links in a random order.
  • int $limit: Limit to X entries. If not specified, all entries are shown.

Source code

function get_linkobjects($category = 0, $orderby = 'name', $limit = 0) {

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



	$links = get_bookmarks( array( 'category' => $category, 'orderby' => $orderby, 'limit' => $limit ) ) ;



	$links_array = array();

	foreach ($links as $link)

		$links_array[] = $link;



	return $links_array;

}

1452

get_linkcatname

Definition:
function get_linkcatname($id = 0) {}

Gets the name of category by id.

Parameters

  • int $id: The category to get. If no category supplied uses 0

Source code

function get_linkcatname($id = 0) {

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



	$id = (int) $id;



	if ( empty($id) )

		return '';



	$cats = wp_get_link_cats($id);



	if ( empty($cats) || ! is_array($cats) )

		return '';



	$cat_id = (int) $cats[0]; // Take the first cat.



	$cat = get_category($cat_id);

	return $cat->name;

}

1449

get_link

Definition:
function get_link($bookmark_id, $output = OBJECT, $filter = 'raw') {}

Retrieve bookmark data based on ID.

Parameters

  • int $bookmark_id: ID of link
  • string $output: OBJECT, ARRAY_N, or ARRAY_A
  • $filter

Source code

function get_link($bookmark_id, $output = OBJECT, $filter = 'raw') {

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

	return get_bookmark($bookmark_id, $output, $filter);

}

1446

get_last_updated

Definition:
function get_last_updated( $deprecated = '', $start = 0, $quantity = 40 ) {}

Get a list of most recently updated blogs.

Parameters

  • mixed $deprecated: Not used
  • int $start: The offset
  • int $quantity: The maximum number of blogs to retrieve. Default is 40.

Return values

returns:The list of blogs

Source code

function get_last_updated( $deprecated = '', $start = 0, $quantity = 40 ) {

	global $wpdb;



	if ( ! empty( $deprecated ) )

		_deprecated_argument( __FUNCTION__, 'MU' ); // never used



	return $wpdb->get_results( $wpdb->prepare("SELECT blog_id, domain, path FROM $wpdb->blogs WHERE site_id = %d AND public = '1' AND archived = '0' AND mature = '0' AND spam = '0' AND deleted = '0' AND last_updated != '0000-00-00 00:00:00' ORDER BY last_updated DESC limit %d, %d", $wpdb->siteid, $start, $quantity ) , ARRAY_A );

}

1444

get_lastpostmodified

Definition:
function get_lastpostmodified($timezone = 'server') {}

Retrieve last post modified date depending on timezone.
The server timezone is the default and is the difference between GMT and server time. The ‘blog’ value is just when the last post was modified. The ‘gmt’ is when the last post was modified in GMT time.

Parameters

  • string $timezone: The location to get the time. Can be ‘gmt’, ‘blog’, or ‘server’.

Return values

returns:The date the post was last modified.

Defined filters

  • get_lastpostmodified
    apply_filters( 'get_lastpostmodified', $lastpostmodified, $timezone )

Source code

function get_lastpostmodified($timezone = 'server') {

	$lastpostmodified = _get_last_post_time( $timezone, 'modified' );



	$lastpostdate = get_lastpostdate($timezone);

	if ( $lastpostdate > $lastpostmodified )

		$lastpostmodified = $lastpostdate;



	return apply_filters( 'get_lastpostmodified', $lastpostmodified, $timezone );

}

1442