Skip to content

Instantly share code, notes, and snippets.

@WPDevHQ
Forked from dsgnr/foreach
Created September 2, 2016 11:19
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 WPDevHQ/c9f17324acbca617cbbb674c4c917902 to your computer and use it in GitHub Desktop.
Save WPDevHQ/c9f17324acbca617cbbb674c4c917902 to your computer and use it in GitHub Desktop.
foreach (dirname((__FILE__)) as $filename) {
$path = plugin_dir_pathdirname(dirname(__FILE__)) . 'includes/partials/' . $filename;
if (is_file($path)) {
require $path;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment