wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



wp_enqueue_classic_theme_styles › WordPress Function

Od6.1.0
Przestarzałyn/a
› wp_enqueue_classic_theme_styles ( Brak parametrów )
Zdefiniowane na:
Codex:
Dziennik zmian:
  • 6.2.0
  • 6.8.0

Loads classic theme styles when the current theme lacks a theme.json file.

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


Źródło

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