Skip to content

Instantly share code, notes, and snippets.

@webdados
Last active November 23, 2018 10:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save webdados/c6094429e1e53306d767ee0b7255f4ea to your computer and use it in GitHub Desktop.
Save webdados/c6094429e1e53306d767ee0b7255f4ea to your computer and use it in GitHub Desktop.
Add placeholders to the Magic Coupon HTML message
<?php
add_filter( 'magic_coupon_html_message_replace_tags', 'my_magic_coupon_html_message_replace_tags' );
function my_magic_coupon_html_message_replace_tags( $replace_tags ) {
$replace_tags['my_placeholder'] = 'my_value'; //key = placeholder without brackets - you can use a php function for the value (I'm just sayin')
return $$replace_tags;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment