wp_is_block_theme

The timeline below displays how wordpress function wp_is_block_theme has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 6.4

/**
 * Returns whether the active theme is a block-based theme or not.
 *
 * @since 5.9.0
 *
 * @return bool Whether the active theme is a block-based theme or not.
 */
function wp_is_block_theme()
{
    return wp_get_theme()->is_block_theme();
}

WordPress Version: 6.1

/**
 * Returns whether the active theme is a block-based theme or not.
 *
 * @since 5.9.0
 *
 * @return boolean Whether the active theme is a block-based theme or not.
 */
function wp_is_block_theme()
{
    return wp_get_theme()->is_block_theme();
}

WordPress Version: 5.9

/**
 * Returns whether the current theme is a block-based theme or not.
 *
 * @since 5.9.0
 *
 * @return boolean Whether the current theme is a block-based theme or not.
 */
function wp_is_block_theme()
{
    return wp_get_theme()->is_block_theme();
}