I want to to get the Author name of the Parent theme. I can get the theme name using wp_get_theme() to get the theme object of the current (child) theme. From this I can get the parent theme name. Next I think I need to get the object of the parent theme, but unsure how […]
As of wordpress 3.4 we’re supposed to use wp_get_theme to return theme data. $theme = wp_get_theme(); //var_dump($theme); echo $theme->Author; despite the var_dump indicating the correct string, $theme->Author always returns a hyperlink with the author’s name, but linked to the author’s site. how can i get just the theme’s author name?
in my one of my plugins i have modules (kind of like plugins in a plugin), is there a function like get_plugin_data() or wp_get_theme() that will allow me to get the header section of a custom file (by passing the path as a parameter)? By heading section i mean /* Plugin Name: Name Of The […]
Is it possible to allow a user to select which theme they would like installed from the new site signup page? And once the site is created, it obviously installs whichever theme they chose. I found wp_get_themes. Is this how you would go about pre-populating a dropdown menu with all the available themes? How do […]