Skip to content

Instantly share code, notes, and snippets.

@ekandreas
Created August 27, 2017 09:32
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 ekandreas/948b31fe7055c189db5102238687ad60 to your computer and use it in GitHub Desktop.
Save ekandreas/948b31fe7055c189db5102238687ad60 to your computer and use it in GitHub Desktop.
Add blade controllers and views to a mother theme
add_filter('bladerunner/controller/paths', function ($paths) {
$paths = get_template_directory() . '/controllers';
return $paths;
});
add_filter('bladerunner/template/bladepath', function($paths) {
$paths = get_template_directory() . '/views';
return $paths;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment