LLMS_User_Achievement::get_image_html( array $size = array() )

Retrieve the HTML <img> for the achievement


Description Description


Parameters Parameters

$size

(array) (Optional) dimensions of the image to return (width x height)

Default value: array()


Top ↑

Return Return

(string)


Top ↑

Source Source

File: includes/models/model.llms.user.achievement.php

	public function get_image_html( $size = array() ) {

		return apply_filters( 'llms_achievement_get_image_html',
			sprintf( '<img alt="%1$s" class="llms-achievement-img" src="%2$s">', esc_attr( $this->get( 'title' ) ), $this->get_image( $size ) ),
		$this );

	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.14.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.





Permalink: