Skip to content

Instantly share code, notes, and snippets.

@nandomoreirame
Last active July 16, 2018 02:45
Show Gist options
  • Select an option

  • Save nandomoreirame/41970c537a3f1d140ba57d0fd1e9b676 to your computer and use it in GitHub Desktop.

Select an option

Save nandomoreirame/41970c537a3f1d140ba57d0fd1e9b676 to your computer and use it in GitHub Desktop.
<?php
$_theme = wp_get_theme();
$_themeName = $_theme->get('Name');
$_themeThemeURI = $_theme->get('ThemeURI');
$_themeDescription = $_theme->get('Description');
$_themeAuthor = $_theme->get('Author');
$_themeAuthorURI = $_theme->get('AuthorURI');
$_themeVersion = $_theme->get('Version');
$_themeVersion = $_theme->get('Version');
$_themeTextDomain = $_theme->get('TextDomain');
/*
[
[Name] => 'THEME NAME'
[ThemeURI] => 'http://themeurl.com'
[Description] => 'Theme description here'
[Author] => 'author name'
[AuthorURI] => 'https://authorurl.com'
[Version] => 1.0.0
[Template] =>
[Status] =>
[Tags] =>
[TextDomain] =>
[DomainPath] =>
]
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment