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
- The topic ‘How to get the folder with the theme?’ is closed to new replies.