LLMS_Emails::get_header_image_src()
Retrieve the source url of the header image as defined in LifterLMS settings
Return Return
(string)
Source Source
File: includes/class.llms.emails.php
207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 | public function get_header_image_src() { $src = get_option( 'lifterlms_email_header_image' , '' ); if ( is_numeric ( $src ) ) { $attachment = wp_get_attachment_image_src( $src , 'full' ); $src = $attachment ? $attachment [0] : '' ; } /** * Filters the header image src * * @since 3.8.0 * * @param string $src Image `src` attribute value. */ return apply_filters( 'llms_email_header_image_src' , $src ); } |
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.8.0 | Introduced. |