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].
Return Return
(string)
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 );
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 3.8.0 | |
| 3.37.19 | Use in_array with strict comparison. |
| 3.10.0 | Introduced. |