get_autotoggle

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

Gets the auto_toggle setting.

Parameters

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

Return values

returns:Only returns 0.

Source code

function get_autotoggle($id = 0) {

	_deprecated_function( __FUNCTION__, '2.1' );

	return 0;

}

1180

get_author_user_ids

Definition:
function get_author_user_ids() {}

Return values

returns:List of user IDs.

Source code

function get_author_user_ids() {

	global $wpdb;

	if ( !is_multisite() )

		$level_key = $wpdb->get_blog_prefix() . 'user_level';

	else

		$level_key = $wpdb->get_blog_prefix() . 'capabilities'; // wpmu site admins don't have user_levels



	return $wpdb->get_col( $wpdb->prepare("SELECT user_id FROM $wpdb->usermeta WHERE meta_key = %s AND meta_value != '0'", $level_key) );

}

1178

get_author_template

Definition:
function get_author_template() {}

Retrieve path of author template in current or parent template.

Source code

function get_author_template() {

	$author = get_queried_object();



	$templates = array();



	$templates[] = "author-{$author->user_nicename}.php";

1176

get_author_rss_link

Definition:
function get_author_rss_link($echo = false, $author_id = 1) {}

Print/Return link to author RSS feed.

Parameters

  • bool $echo
  • int $author_id

Source code

function get_author_rss_link($echo = false, $author_id = 1) {

	_deprecated_function( __FUNCTION__, '2.5', 'get_author_feed_link()' );



	$link = get_author_feed_link($author_id);

	if ( $echo )

		echo $link;

	return $link;

}

1174

get_author_posts_url

Definition:
function get_author_posts_url($author_id, $author_nicename = '') {}

Retrieve the URL to the author page for the user with the ID provided.

Parameters

  • $author_id
  • $author_nicename

Return values

returns:The URL to the author’s page.

Defined filters

  • author_link
    apply_filters('author_link', $link, $author_id, $author_nicename)

Source code

function get_author_posts_url($author_id, $author_nicename = '') {

	global $wp_rewrite;

	$auth_ID = (int) $author_id;

	$link = $wp_rewrite->get_author_permastruct();



	if ( empty($link) ) {

		$file = home_url( '/' );

		$link = $file . '?author=' . $auth_ID;

	} else {

		if ( '' == $author_nicename ) {

			$user = get_userdata($author_id);

			if ( !empty($user->user_nicename) )

				$author_nicename = $user->user_nicename;

		}

		$link = str_replace('%author%', $author_nicename, $link);

		$link = home_url( user_trailingslashit( $link ) );

	}



	$link = apply_filters('author_link', $link, $author_id, $author_nicename);



	return $link;

}

1172