Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter('template_include', function( $template ) {
- $path = explode('/', $template);
- $template_choosen = end($path);
- $template = 'src\\components\\pages\\' . $template_choosen;
- array_pop($path);
- $path[] = $template;
- $path = implode('\\', $path);
- return $path;
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement