Skip to content

Instantly share code, notes, and snippets.

@dsgnr
Created September 1, 2016 20:38
Show Gist options
  • Save dsgnr/a83aefa8f212201f4d594a19e6c836c9 to your computer and use it in GitHub Desktop.
Save dsgnr/a83aefa8f212201f4d594a19e6c836c9 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