Adding filter to customize the message
-
Hello
I just added a filter affiliates_new_affiliate_registration_message to my functions.php file in child theme and nothing is changing. Any ideas?
add_filter( ‘affiliates_new_affiliate_user_registration_message’, ‘example_user_registration_message’, 10, 2 );
function example_user_registration_message( $message, $params ) {
$message = ‘Write here whatever you prefer your user should read in the welcome email.’;
$message .= ‘User info can be found in the params array, like user object, username, user_id’;return $message;
}https://gist.github.com/geotsiokos/8656fe8a7efa379c88dc6bf8074ac12a
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Adding filter to customize the message’ is closed to new replies.