LLMS_Abstract_Notification_View::get_html()

Retrieve the full HTML to be output for the notification type


Return Return

(string|WP_Error) If the notification type is not supported, returns an error.


Top ↑

Source Source

File: includes/abstracts/llms.abstract.notification.view.php

	public function get_html() {

		$type = $this->notification->get( 'type' );

		switch ( $type ) {

			case 'email':
				$html = $this->get_email_html();
				break;

			case 'basic':
				$html = $this->get_basic_html();
				break;

			// 3rd party/custom types.
			default:
				$html = apply_filters( $this->get_filter( 'get_' . $type . '_html' ), null, $this );

		}

		return apply_filters( $this->get_filter( 'get_html' ), $html, $this );

	}


Top ↑

Changelog Changelog

Changelog
Version Description
4.16.0 Pass null to the 3rd-party filter.
3.8.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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