Warning: This method has been deprecated. LLMS_Achievement_User::get_content_html() is deprecated with no replacement instead.

Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

LLMS_Achievement_User::get_content_html()

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


Return Return

(string)


Top ↑

Source Source

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

241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
private 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 ↑

Changelog Changelog

Changelog
Version Description
6.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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