0
Ich möchte Wordpress Theme Name aus Stylesheet (style.css) bekommen.Wordpress erhalten Thema Name aus Stylesheet
Denn hier Beispiel ist style.css:
/*
Theme Name: Campus
Theme URI: http://www.academiathemes.com/themes/campus/
Description: Campus is a free WordPress theme for blogs and review websites.
Author: AcademiaThemes.com
Author URI: http://www.academiathemes.com/
Version: 1.2.6
License: GNU General Public License v2.0
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: blue, white, light, two-columns, right-sidebar, fixed-layout, responsive-layout, custom-background, custom-menu, featured-images, theme-options, threaded-comments, translation-ready
Text Domain: campus
*/
"Theme Name: Campus" muss in PHP-Variablen gespeichert werden.
Irgendwelche Ideen? Vielen Dank.
Docs auf wp_get_theme: https://codex.wordpress.org/Function_Reference/wp_get_theme –
Vielen Dank! Es klappt ! – Coze