wp_is_block_theme(): bool

In this article

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

Return

bool Whether the active theme is a block-based theme or not.

Source

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

Changelog

VersionDescription
5.9.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.