LLMS_Certificate_User::get_content_html()

get_content_html function.


Description Description


Return Return

(string)


Top ↑

Source Source

File: includes/certificates/class.llms.certificate.user.php

	function get_content_html() {

		$codes = apply_filters( 'llms_certificate_merge_codes', array(
			'{site_title}' => $this->get_blogname(),
			'{user_login}' => $this->user_login,
			'{site_url}' => $this->account_link,
			'{first_name}' => $this->user_firstname,
			'{last_name}' => $this->user_lastname,
			'{email_address}' => $this->user_email,
			'{student_id}' => $this->userid,
			'{current_date}' => date_i18n( get_option( 'date_format' ), current_time( 'timestamp' ) ),
		), $this );

		$this->find = array_keys( $codes );
		$this->replace = array_values( $codes );

		$content = $this->format_string( $this->content );

		ob_start();
		llms_get_template( $this->template_html, array(
			'email_message' 	 => $content,
			'title'				 => $this->title,
			'image'				 => $this->image,
		) );
		return ob_get_clean();
	}

Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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





Permalink: