LLMS_Email::format_string( string $string )
Format string method
Description Description
Finds and replaces merge fields with appropriate data.
Parameters Parameters
- $string
-
(string) (Required) String to be formatted.
Return Return
(string)
Source Source
File: includes/emails/class.llms.email.php
265 266 267 | public function format_string( $string ) { return do_shortcode( str_replace ( $this ->find, $this ->replace, $string ) ); } |
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
5.0.0 | Process shortocdes when formatting a string. |
1.0.0 | Introduced. |