Skip to content

Instantly share code, notes, and snippets.

@pippinsplugins
Created June 15, 2012 02:16
Show Gist options
  • Save pippinsplugins/2934333 to your computer and use it in GitHub Desktop.
Save pippinsplugins/2934333 to your computer and use it in GitHub Desktop.
Change the Discount Code label in Easy Digital Downloads
<?php
function pw_edd_discount_label( $translated_text, $text, $domain ) {
switch( $translated_text ) {
case 'Enter discount':
$translated_text = 'Enter Discount Code Here';
break;
}
return $translated_text;
}
add_filter('gettext', 'pw_edd_discount_label', 20, 3);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment