Skip to content

Instantly share code, notes, and snippets.

@tivnet
Last active June 8, 2016 01:48
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tivnet/278c4f467f7e0b4fb80f to your computer and use it in GitHub Desktop.
Save tivnet/278c4f467f7e0b4fb80f to your computer and use it in GitHub Desktop.
Makepot: Ignore all strings that are not from our textdomain. `node_modules/grunt-wp-i18n/vendor/wp-i18n-tools/extract.php`
<?php
// .../node_modules/grunt-wp-i18n/vendor/wp-i18n-tools/extract.php
public function entry_from_call( $call, $file_name ) {
/**
* Ignore all strings that are not from our textdomain
*/
if ( $call['args'][ count( $call['args'] ) - 1 ] !== 'my-text-domain' ) {
return null;
}
// <method continues here>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment