wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



wp_enqueue_classic_theme_styles › WordPress Function

Seit6.1.0
Veraltetn/v
wp_enqueue_classic_theme_styles ( Keine Parameter )
Definiert in:
Codex:
Changelog:
  • 6.2.0
  • 6.8.0

Loads classic theme styles on classic themes in the frontend.

This is used for backwards compatibility for Button and File blocks specifically.


Quellcode

function wp_enqueue_classic_theme_styles() {
	if ( ! wp_theme_has_theme_json() ) {
		wp_enqueue_style( 'classic-theme-styles' );
	}
}