How to get the folder with the theme?
-
Hello! I’m writing a plugin that is going to modify template files when switching to it, so I need to know, in which folder template files are. I tried to use switch_theme action , but it gives only the name of the theme, whilst the folder can named the other way. For example if the theme name, given by action, is ‘The Theme’, folder can be ‘the_theme’, ‘thetheme’, ‘the-theme’, ‘the-theme-10’, ‘TheTheme’ … Is there any way to get the folder, template is in? TIA
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to get the folder with the theme?’ is closed to new replies.