Description
Filters the default terms for user facing strings in the plugin. Can be used for managing translations.
Parameters
(array) (required) An array of any strings being changed from the defaults.
Defaults:
[snippet slug=wpmem_default_text-defaults lang=php]
Usage
Use this filter to change the plugin’s default text strings as needed. You only need to return the array keys being changed from the defaults.
The following example changes the default values for the form headings (login and registration):
[snippet slug=wpmem_default_text lang=php]
Looking at the list of default values in the $text
array, you can use the framework of the above example to change as many or as few of the user facing strings as needed.
Changelog
Added in 3.2.7
Source
wpmem_default_text is located in includes/class-wp-members-dialogs.php