wpseek.com
WordPress开发者和主题制作者的搜索引擎



wp_is_block_theme › WordPress Function

Since5.9.0
已弃用n/a
wp_is_block_theme ( 没有参数 )
返回:
  • (bool) Whether the active theme is a block-based theme or not.
定义在:
文档:

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



源码

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