LLMS_Abstract_Notification_View::get_icon_src()
Retrieve the icon src for the notification
Return Return
(string)
Source Source
File: includes/abstracts/llms.abstract.notification.view.php
public function get_icon_src() {
$src = '';
$val = $this->get_icon();
if ( is_numeric( $val ) ) {
$src = wp_get_attachment_image_src( $val, 'llms_notification_icon' );
if ( is_array( $src ) ) {
$src = $src[0];
}
} else {
$src = $val;
}
return apply_filters( $this->get_filter( 'get_icon_src' ), $src, $this );
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 3.8.0 | Introduced. |