wp_is_block_theme(): bool

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.


Top ↑

Source

File: wp-includes/theme.php. View all references

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


Top ↑

Changelog

Changelog
Version Description
5.9.0 Introduced.

Top ↑

User Contributed Notes

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