Skip to content

Instantly share code, notes, and snippets.

@dancameron
Created August 19, 2019 20:51
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 dancameron/4670b3fd56ae730e986e6aee7617e465 to your computer and use it in GitHub Desktop.
Save dancameron/4670b3fd56ae730e986e6aee7617e465 to your computer and use it in GitHub Desktop.
Override the Language File
<?php // don't include this line in your functions.php, since it already starts with it.
function _override_load_textdomain_for_si( $bool = false, $domain = '', $mofile = '' ) {
if ( 'sprout-invoices' == $domain ) {
return true;
}
return $bool;
}
add_filter( 'override_load_textdomain', '_override_load_textdomain_for_si', 3 );
@dancameron
Copy link
Author

This snippet is a customization for Sprout Invoices. A customizable solution that provides a way for you to get paid via your WordPress site. For more information please don't hesitate to reach out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment