Skip to content

Instantly share code, notes, and snippets.

@shanethehat
Last active December 17, 2015 06:39
Show Gist options
  • Save shanethehat/5567510 to your computer and use it in GitHub Desktop.
Save shanethehat/5567510 to your computer and use it in GitHub Desktop.
Find preprocess functions for theme functions
#!/bin/bash
for f in `grep -PhoR "(?<=function theme_)[a-z_]*"`
do
grep -iR "function template_preprocess_$f("
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment