This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function my_uppercase_name( $data ) { | |
if(isset($data['firstname'])) $data['firstname'] = ucwords($data['firstname']); | |
if(isset($data['lastname'])) $data['lastname'] = ucwords($data['lastname']); | |
return $data; | |
} | |
add_filter( 'mymail_verify_subscriber', 'my_uppercase_name' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function add_custom_header_to_mymail($obj){ | |
$obj->add_header('X-Custom-Header', 'Custom Value'); | |
} | |
add_action('mymail_presend', 'add_custom_header_to_mymail'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ( function_exists( 'mymail_add_tag' ) ) { | |
function mytag_function($option, $fallback, $campaignID = NULL, $subscriberID = NULL){ | |
if(1 == $option){ | |
$link = 'http://exmaple.com/link1'; | |
}else if(2 == $option){ | |
$link = 'http://exmaple.com/link2'; | |
}else if(3 == $option){ | |
$link = 'http://exmaple.com/link3'; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function my_mymail_text_strings( $translated_text, $org_text, $domain ) { | |
if($domain != 'mymail') return $translated_text; | |
switch ( $org_text ) { | |
case 'Search for Text to Replace' : | |
$translated_text = 'Replace it with this text'; | |
break; | |
} | |
return $translated_text; | |
} |
NewerOlder