user_admin_url

Definition:
function user_admin_url( $path = '', $scheme = 'admin' ) {}

Retrieve the url to the admin area for the current user.

Parameters

  • string $path: Optional path relative to the admin url.
  • string $scheme: The scheme to use. Default is ‘admin’, which obeys force_ssl_admin() and is_ssl(). ‘http’ or ‘https’ can be passed to force those schemes.

Return values

returns:Admin url link with optional path appended.

Defined filters

  • user_admin_url
    apply_filters('user_admin_url', $url, $path)

Source code

function user_admin_url( $path = '', $scheme = 'admin' ) {

	$url = network_site_url('wp-admin/user/', $scheme);



	if ( !empty($path) && is_string($path) && strpos($path, '..') === false )

		$url .= ltrim($path, '/');



	return apply_filters('user_admin_url', $url, $path);

}

10503

username_exists

Definition:
function username_exists( $username ) {}

Checks whether the given username exists.

Parameters

  • string $username: Username.

Return values

returns:The user’s ID on success, and null on failure.

Source code

function username_exists( $username ) {

	if ( $user = get_user_by('login', $username ) ) {

		return $user->ID;

	} else {

		return null;

	}

}

10500

update_category_cache

Definition:
function update_category_cache() {}

Update the categories cache.
This function does not appear to be used anymore or does not appear to be needed. It might be a legacy function left over from when there was a need for updating the category cache.

Return values

returns:Always return True

Source code

function update_category_cache() {

	_deprecated_function( __FUNCTION__, '3.1'  );



	return true;

}

10444

twentyten_posted_on

Definition:
function twentyten_posted_on() {}

Prints HTML with meta information for the current post-date/time and author.

Source code

function twentyten_posted_on() {

	printf( __( '<span class="%1$s">Posted on</span> %2$s <span class="meta-sep">by</span> %3$s', 'twentyten' ),

		'meta-prep meta-prep-author',

		sprintf( '<a href="%1$s" title="%2$s" rel="bookmark"><span class="entry-date">%3$s</span></a>',

			get_permalink(),

			esc_attr( get_the_time() ),

			get_the_date()

		),

		sprintf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>',

			get_author_posts_url( get_the_author_meta( 'ID' ) ),

			esc_attr( sprintf( __( 'View all posts by %s', 'twentyten' ), get_the_author() ) ),

			get_the_author()

		)

	);

}

10415

translate_nooped_plural

Definition:
function translate_nooped_plural( $nooped_plural, $count, $domain = 'default' ) {}

Translate the result of _n_noop() or _nx_noop()

Parameters

  • array $nooped_plural: Array with singular, plural and context keys, usually the result of _n_noop() or _nx_noop()
  • int $count: Number of objects
  • string $domain: Optional. The domain identifier the text should be retrieved in

Source code

function translate_nooped_plural( $nooped_plural, $count, $domain = 'default' ) {

	if ( $nooped_plural['context'] )

		return _nx( $nooped_plural['singular'], $nooped_plural['plural'], $count, $nooped_plural['context'], $domain );

	else

		return _n( $nooped_plural['singular'], $nooped_plural['plural'], $count, $domain );

}

10401