Files
doitinpoland.com/wp-content/plugins/wpml-string-translation/classes/menus/theme-plugin-localization-ui/class-st-theme-localization-ui-utils.php
2023-09-12 21:41:04 +02:00

21 lines
467 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;
}
}