Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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