Skip to content

Instantly share code, notes, and snippets.

@kreamweb
Last active April 1, 2020 08:21
Show Gist options
  • Save kreamweb/71ef483af70f681db470fc5236c0419f to your computer and use it in GitHub Desktop.
Save kreamweb/71ef483af70f681db470fc5236c0419f to your computer and use it in GitHub Desktop.
phpcs --standard=WordPress templates/request-quote-view.php
#hide warning
phpcs --standard=WordPress -n templates/request-quote-view.php
#automation
phpcs --standard=WordPress --report-diff=changes.diff view-quote.php
patch -p0 -ui changes.diff
//only escape
phpcs --standard=WordPress --sniffs=WordPress.Security.EscapeOutput includes/*
//common phpcs ignore
// phpcs:ignore WordPress.Security.NonceVerification.Recommended
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment