Skip to content

Instantly share code, notes, and snippets.

@remcotolsma
Created April 13, 2021 09:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save remcotolsma/65c006013b9373dc14be4053c8cb9dac to your computer and use it in GitHub Desktop.
Save remcotolsma/65c006013b9373dc14be4053c8cb9dac to your computer and use it in GitHub Desktop.
Quick search your project file for WordPress filters and actions.
grep --recursive --include="*.php" --exclude-dir={bower_components,deploy,node_modules,vendor,wordpress,wp-content} --ignore-case "apply_filters" .
grep --recursive --include="*.php" --exclude-dir={bower_components,deploy,node_modules,vendor,wordpress,wp-content} --ignore-case "do_action" .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment