Tag Info

Hot answers tagged


You can get this value about the child theme. At first get your child theme date. The simplest way is the function wp_get_theme(), see codex for the parameters and more information. You get a object with all relevant information about the current theme. In step two check, if is a child theme and then get his parent information, like the follow source. // ...


Thanks for all the help which pointed me in the right direction. In the end I used the following: $style_parent_theme = wp_get_theme(get_template()); $style_parent_theme_author = $style_parent_theme->get( 'Author' ); I use get_template() to recover the folder name of the parent theme. wp_get_theme then get's the theme object. Once we have that we can ...

Only top voted, non community-wiki answers of a minimum length are eligible