Last active
June 8, 2016 01:48
-
-
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`
This file contains hidden or 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 | |
// .../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
See https://github.com/cedaro/grunt-wp-i18n/blob/develop/vendor/wp-i18n-tools/extract.php#L89