Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
LLMS_Abstract_Notification_View::get_merged_string( string $string )
Merge a string.
Parameters Parameters
- $string
-
(string) (Required) An unmerged string.
Return Return
(string)
Source Source
File: includes/abstracts/llms.abstract.notification.view.php
607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 | private function get_merged_string( $string ) { // Only merge if there are codes in the string. if ( false !== strpos ( $string , '{{' ) ) { $merge_code_defaults = $this ->get_merge_code_defaults(); foreach ( $this ->get_used_merge_codes( $string ) as $code ) { // Set defaults. if ( array_key_exists ( $code , $merge_code_defaults ) ) { $func = 'set_merge_data_default' ; // Set customs with extended class func. } else { $func = 'set_merge_data' ; } $string = str_replace ( $code , $this -> $func ( $code ), $string ); } } return apply_filters( $this ->get_filter( 'get_merged_string' ), $this ->sentence_case( $string ), $this ); } |
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
6.4.0 | Only populate effectively used merged data. |
3.8.0 | |
3.37.19 | Introduced. |