Quantcast
Channel: Topic Tag: plugin | WordPress.org
Viewing all articles
Browse latest Browse all 26892

bcworkz on "Get theme from a sub directory only under themes folder"

$
0
0

You can pass the path to wp_get_theme(), which will return a WP_Theme object for that path, which contains the name and related info. As evidenced by this function returning a single object instead of an array, it appears a theme folder should only contain one theme.

How would one place multiple themes in a folder? There can only be one style.css file.


Viewing all articles
Browse latest Browse all 26892

Trending Articles