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 parameter for $markup.

Leave a Comment