This file contains hidden or 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 remove_bmi_links($replace){ | |
| $replace['1.1.1.1/bmi/'] = ''; | |
| $replace['1.1.1.2/bmi/'] = ''; | |
| $replace['1.1.1.3/bmi/'] = ''; | |
| $replace['1.1.1.4/bmi/'] = ''; | |
| $replace['1.1.1.5/bmi/'] = ''; | |
| $replace['1.2.3.4/bmi/'] = ''; | |
| $replace['1.2.3.9/bmi/'] = ''; | |
| $replace['1.2.3.10/bmi/'] = ''; |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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