LLMS_Abstract_Notification_View::get_icon_default( string $type )

Retrieve a default icon for the notification based on the notification type


Parameters Parameters

$type

(string) (Required) Type of icon [positive|negative].


Top ↑

Return Return

(string)


Top ↑

Source Source

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

	public function get_icon_default( $type ) {
		if ( ! in_array( $type, array( 'negative', 'positive', 'warning' ), true ) ) {
			$ret = '';
		} else {
			$ret = LLMS()->plugin_url() . '/assets/images/notifications/icon-' . $type . '.png';
		}
		return apply_filters( 'llms_notification_get_icon_default', $ret, $type, $this );
	}


Top ↑

Changelog Changelog

Changelog
Version Description
3.8.0
3.37.19 Use in_array with strict comparison.
3.10.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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