is_avatar_comment_type

Advertisement

Summery Summery

Check if this comment type allows avatars to be retrieved.

Syntax Syntax

is_avatar_comment_type( string $comment_type )

Parameters Parameters

$comment_type

(Required) Comment type to check.

Return Return

(bool) Whether the comment type is allowed for retrieving avatars.

Source Source

File: wp-includes/link-template.php

 *     @type string $scheme         URL scheme to use. See set_url_scheme() for accepted values.
 *                                  Default null.
 *     @type array  $processed_args When the function returns, the value will be the processed/sanitized $args
 *                                  plus a "found_avatar" guess. Pass as a reference. Default null.
 * }
 * @return string|false The URL of the avatar on success, false on failure.
 */
function get_avatar_url( $id_or_email, $args = null ) {
	$args = get_avatar_data( $id_or_email, $args );
	return $args['url'];
}

Advertisement

Changelog Changelog

Changelog
Version Description
5.1.0 Introduced.

Advertisement

Leave a Reply