Description
Filters the default dialogs used in user validation.
Parameters
$defaults
(array) (required) An array of the default dialogs:
- email_text – “Click to validate your account: “
- success_message – “Thank you for validating your account.”
- invalid_message – “Validation key was expired or invalid”
- moderated_message – “Your account is now pending approval”
Usage
An example of using the filter to change the success message:
add_filter( 'wpmem_validation_link_default_dialogs', function( $defaults ) { // Use filter to change success message. $defaults['success_message'] = "You have successfully validated your account!"; return $defaults; });
Changelog
Introduced in version 3.3.8
Source
wpmem_email_filter is located in includes/class-wp-members-validation-link.php.