LLMS_Achievement_User::get_content_html()

Gets post content and replaces merge fields with user meta-data


Description Description


Return Return

(mixed) [returns formatted post content]


Top ↑

Source Source

File: includes/achievements/class.llms.achievement.user.php

	public function get_content_html() {

		$this->find = array(
			'{site_title}',
			'{user_login}',
			'{site_url}',
			'{first_name}',
			'{last_name}',
			'{email_address}',
			'{current_date}',
		);
		$this->replace = array(
			$this->get_blogname(),
			$this->user_login,
			$this->account_link,
			$this->user_firstname,
			$this->user_lastname,
			$this->user_email,
			date( 'M d, Y', strtotime( current_time( 'mysql' ) ) ),
		);

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

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


Top ↑

User Contributed Notes User Contributed Notes

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





Permalink: