use wp_get_theme() to get theme author name

Do not use just the header string, call display() instead and set the second parameter to FALSE to suppress markup. // FALSE for no markup $theme->display( ‘Author’, FALSE ); What you see in your var_dump() are private properties. If you print $theme->Author the magic __get() method is called and this calls display() without the second … Read more

Get parent theme version

In the WP_Theme class, the get method gives you a sanitized theme header. You cannot use it to extract a property. Actually you don’t need to, as you can access it directly like this: // get the parent object $parent = wp_get_theme()->parent(); // get parent version if (!empty($parent)) $parent_version = $parent->Version;

Get Parent Theme Author Name

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 manipulate the object to … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)