Skip to content

Instantly share code, notes, and snippets.

@RyanNutt
Created January 20, 2019 22:34
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 RyanNutt/700eb926e6b591ee7b6fe45a0591b455 to your computer and use it in GitHub Desktop.
Save RyanNutt/700eb926e6b591ee7b6fe45a0591b455 to your computer and use it in GitHub Desktop.
WP-CLI command to test WordPress actions from the command line
wp eval "do_action('action_name');" --path=/path/to/htdocs --url=https://website.domain
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment