get_the_author_email

Definition:
function get_the_author_email() {}

Retrieve the email of the author of the current post.

Return values

returns:The author’s username.

Source code

function get_the_author_email() {

	_deprecated_function( __FUNCTION__, '2.8', 'get_the_author_meta(\'email\')' );

	return get_the_author_meta('email');

}

1789

get_the_author_description

Definition:
function get_the_author_description() {}

Retrieve the description of the author of the current post.

Return values

returns:The author’s description.

Source code

function get_the_author_description() {

	_deprecated_function( __FUNCTION__, '2.8', 'get_the_author_meta(\'description\')' );

	return get_the_author_meta('description');

}

1787

get_the_author_aim

Definition:
function get_the_author_aim() {}

Retrieve the AIM address of the author of the current post.

Return values

returns:The author’s AIM address.

Source code

function get_the_author_aim() {

	_deprecated_function( __FUNCTION__, '2.8', 'get_the_author_meta(\'aim\')' );

	return get_the_author_meta('aim');

}

1785

get_the_author

Definition:
function get_the_author($deprecated = '') {}

Retrieve the author of the current post.

Parameters

  • string $deprecated: Deprecated.

Return values

returns:The author’s display name.

Defined filters

  • the_author
    apply_filters('the_author', is_object($authordata)

Source code

function get_the_author($deprecated = '') {

	global $authordata;



	if ( !empty( $deprecated ) )

		_deprecated_argument( __FUNCTION__, '2.1' );



	return apply_filters('the_author', is_object($authordata) ? $authordata->display_name : null);

}

1783

get_the_attachment_link

Definition:
function get_the_attachment_link($id = 0, $fullsize = false, $max_dims = false, $permalink = false) {}

Retrieve HTML content of attachment image with link.

Parameters

  • int $id: Optional. Post ID.
  • bool $fullsize: Optional, default is false. Whether to use full size image.
  • array $max_dims: Optional. Max image dimensions.
  • bool $permalink: Optional, default is false. Whether to include permalink to image.

Source code

function get_the_attachment_link($id = 0, $fullsize = false, $max_dims = false, $permalink = false) {

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

	$id = (int) $id;

	$_post = & get_post($id);



	if ( ('attachment' != $_post->post_type) || !$url = wp_get_attachment_url($_post->ID) )

		return __('Missing Attachment');



	if ( $permalink )

		$url = get_attachment_link($_post->ID);



	$post_title = esc_attr($_post->post_title);



	$innerHTML = get_attachment_innerHTML($_post->ID, $fullsize, $max_dims);

	return "<a href='$url' title='$post_title'>$innerHTML</a>";

}

1781