-
-
Save kjohnson/6f3016737efc6e03f4071575e7d839f8 to your computer and use it in GitHub Desktop.
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
wp.hooks.addFilter( | |
'i18n.gettext', | |
'myplugin/filter-gettext', | |
function( translation, text, domain ) { | |
if ( 'Your Giving Stats' === text && 'give' === domain ) { | |
return 'YOUR TEST HERE' | |
} | |
return translation; | |
} | |
); |
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
<?php | |
/** | |
* Plugin Name: GiveWP Donor Dashboard Custom Translations | |
*/ | |
add_action( 'give_embed_head', function() { | |
wp_enqueue_script('my-i18n', plugin_dir_url(__FILE__) . 'index.js' ); | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment