diff --git a/README.md b/README.md index c49be1a..7c4c013 100644 --- a/README.md +++ b/README.md @@ -134,12 +134,14 @@ if the source directory is detected as either a plugin or theme. **EXAMPLES** - # Create a POT file for the WordPress plugin/theme in the current directory + # Create a POT file for the WordPress plugin/theme in the current directory. $ wp i18n make-pot . languages/my-plugin.pot # Create a POT file for the continents and cities list in WordPress core. - $ wp i18n make-pot . continents-and-cities.pot --include="wp-admin/includes/continents-cities.php" - --ignore-domain + $ wp i18n make-pot . continents-and-cities.pot --include="wp-admin/includes/continents-cities.php" --ignore-domain + + # Create a POT file for the WordPress theme in the current directory with custom headers. + $ wp i18n make-pot . languages/my-theme.pot --headers='{"Report-Msgid-Bugs-To":"https://github.com/theme-author/my-theme/","POT-Creation-Date":""}' diff --git a/src/MakePotCommand.php b/src/MakePotCommand.php index 3b5b914..fea7bcd 100644 --- a/src/MakePotCommand.php +++ b/src/MakePotCommand.php @@ -273,12 +273,14 @@ class MakePotCommand extends WP_CLI_Command { * * ## EXAMPLES * - * # Create a POT file for the WordPress plugin/theme in the current directory + * # Create a POT file for the WordPress plugin/theme in the current directory. * $ wp i18n make-pot . languages/my-plugin.pot * * # Create a POT file for the continents and cities list in WordPress core. - * $ wp i18n make-pot . continents-and-cities.pot --include="wp-admin/includes/continents-cities.php" - * --ignore-domain + * $ wp i18n make-pot . continents-and-cities.pot --include="wp-admin/includes/continents-cities.php" --ignore-domain + * + * # Create a POT file for the WordPress theme in the current directory with custom headers. + * $ wp i18n make-pot . languages/my-theme.pot --headers='{"Report-Msgid-Bugs-To":"https://github.com/theme-author/my-theme/","POT-Creation-Date":""}' * * @when before_wp_load *