wpmem_gettext()

Description

Returns or prints a requested message string from the WP_Members::get_text() method.

This function is deprecated as of WP-Members 3.4.0, use wpmem_get_text() instead.

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.1.1
  • Added $echo argument in 3.1.2
  • Deprecated in 3.4.0 (use wpmem_get_text() instead)

Source

wpmem_gettext() is located in /includes/deprecated.php.