Skip to content

Instantly share code, notes, and snippets.

@nirajgiriXD
Last active April 25, 2024 13:14
Show Gist options
  • Save nirajgiriXD/924f0f09753a73457592730beb3a3aee to your computer and use it in GitHub Desktop.
Save nirajgiriXD/924f0f09753a73457592730beb3a3aee to your computer and use it in GitHub Desktop.
Useful WordPress commands

WP CLI

wp i18n make-pot . ./destination/path/file_name.pot --exclude=<dir>
wp i18n update-po ./source/path/file_name.pot ./destination/path/file_name.po
wp i18n make-mo ./source/path/file_name.po

WP Blocks

npx @wordpress/create-block@latest <block-name> --namespace="<plugin-namespace>" --slug="<plugin-slug>" --variant="<dynamic | static>"

VIP CLI

vip dev-env create --slug=example-site
vip dev-env info --slug=example-site
vip dev-env start --slug example-site
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment