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_used_merge_codes( string $string )
Retrieve merge codes used in a given string.
Parameters Parameters
- $string
-
(string) (Required) Text string whereto look for merge codes.
Return Return
(array) Returns a list of merge codes actually used in the passed string.
Source Source
File: includes/abstracts/llms.abstract.notification.view.php
645 646 647 648 649 650 651 652 653 654 655 656 657 | private function get_used_merge_codes( $string ) { return array_keys ( array_filter ( $this ->get_merge_codes(), function ( $code ) use ( $string ) { return false !== strpos ( $string , $code ); }, ARRAY_FILTER_USE_KEY ) ); } |
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
6.4.0 | Introduced. |