Returns or prints a requested message string from the WP_Members::get_text() method.
Parameters
$str
(string) (required) The array key of the string to retrieve from WP_Members::get_text().
$echo
(bool) (optional) Prints the requested string if true (default: false).
Return Values
(string) The requested message string.
Examples
[gist id=”71999f4cb8ec461f56fc2263e2b131bb” file=”wpmem_gettext.php”]
Notes
List of possible strings by key:
[gist id=”71999f4cb8ec461f56fc2263e2b131bb” file=”wpmem_gettext__defaults.php”]
Changelog
- Introduced in version 3.4.0, replaces wpmem_gettext()
Source
wpmem_get_text() is located in /includes/api/api.php.