wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



wp_is_block_theme › WordPress Function

Depuis5.9.0
Dépréciéen/a
wp_is_block_theme ( Pas de paramètres )
Retourne:
  • (bool) Whether the active theme is a block-based theme or not.
Défini(e) dans:
Codex:

Returns whether the active theme is a block-based theme or not.



Source

function wp_is_block_theme() {
	return wp_get_theme()->is_block_theme();
}