PHP+WORDPRESS

How to Display theme information with wp_get_theme

<?php

$theme_data = wp_get_theme();

echo $theme_data->get( 'Name' );        
echo '<br>';
echo $theme_data->get( 'ThemeURI' );
echo '<br>';
echo $theme_data->get( 'Description' );
echo '<br>';
echo $theme_data->get( 'Author' );
echo '<br>';
echo $theme_data->get( 'AuthorURI' );
echo '<br>';


?>

Leave a Reply

学习的梦想

锤炼的彩色