pre_get_avatar_data

pre_get_avatar_data

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('pre_get_avatar_data') is found 1 times:

  • /wp-includes/link-template.php line 4480
    	 * @param array $args        Arguments passed to get_avatar_data(), after processing.
    	 * @param mixed $id_or_email The avatar to retrieve. Accepts a user ID, Gravatar MD5 hash,
    	 *                           user email, WP_User object, WP_Post object, or WP_Comment object.
    	 */
    	$args = apply_filters( 'pre_get_avatar_data', $args, $id_or_email );
    
    	if ( isset( $args['url'] ) ) {
    		/** This filter is documented in wp-includes/link-template.php */
    		return apply_filters( 'get_avatar_data', $args, $id_or_email );
    	}