ldc-groupe/content/plugins/wpml-string-translation/classes/menus/theme-plugin-localization-ui/class-st-theme-localization-ui-utils.php
Vincent BRIDIER 134507db43 - Backup DEV
- Add DotEnv
- Fix Bato
- Etc..
2020-05-04 15:59:02 +02:00

20 lines
No EOL
466 B
PHP

<?php
class WPML_ST_Theme_Localization_Utils {
/** @return array */
public function get_theme_data() {
$themes = wp_get_themes();
$theme_data = array();
foreach ( $themes as $theme_folder => $theme ) {
$theme_data[ $theme_folder ] = array(
'path' => $theme->get_theme_root() . '/' . $theme->get_stylesheet(),
'name' => $theme->get( 'Name' ),
'TextDomain' => $theme->get( 'TextDomain' ),
);
}
return $theme_data;
}
}