LLMS_Email::get_content_html()
Get the HTML email content
Return Return
(string)
Source Source
File: includes/emails/class.llms.email.php
312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 | public function get_content_html() { global $post ; $temp = null; // Override the $post global with the email post content (if it exists). // This fixes Elementor / WC conflict outlined at https://github.com/gocodebox/lifterlms/issues/730. if ( isset( $this ->email_post ) ) { $temp = $post ; $post = $this ->email_post; } ob_start(); llms_get_template( $this ->template_html, array ( 'email_heading' => $this ->get_heading(), 'email_message' => $this ->get_body(), ) ); $html = apply_filters( 'llms_email_content_get_content_html' , ob_get_clean(), $this ); // Restore the default $post global. if ( $temp ) { $post = $temp ; } return $html ; } |
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.8.0 | Introduced. |