---
title: >-
  Theme app extensions now support conditional app blocks - Shopify developer
  changelog
description: >-
  Shopify’s developer changelog documents all changes to Shopify’s platform.
  Find the latest news and learn about new platform opportunities.
source_url:
  html: >-
    https://shopify.dev/changelog/theme-app-extensions-now-support-conditional-app-blocks
  md: >-
    https://shopify.dev/changelog/theme-app-extensions-now-support-conditional-app-blocks.md
metadata:
  effectiveApiVersion: 2022-04
  affectedApi: []
  primaryTag:
    displayName: API
    handle: api
  secondaryTag:
    displayName: New
    handle: new
  indicatesActionRequired: false
  createdAt: '2022-03-30T14:40:07-04:00'
  postedAt: '2022-04-04T00:00:00-04:00'
  updatedAt: '2024-12-13T17:24:33-05:00'
  effectiveAt: '2022-04-04T00:00:00-04:00'
---

April 4, 2022

Tags:

* API
* 2022-04

# Theme app extensions now support conditional app blocks

The visibility of an app block, or app embed block, of a [theme app extension](https://shopify.dev/apps/online-store/theme-app-extensions/) can now be controlled based on a custom condition.

The condition can be included in the block's [schema](https://shopify.dev/apps/online-store/theme-app-extensions/extensions-framework#schema) with the `available_if` attribute, and the state of the condition is stored in an [app-owned metafield](https://shopify.dev/api/admin-graphql/2022-04/enums/MetafieldOwnerType#value-apipermission). The metafield can be accessed through the Liquid [`app` object](https://shopify.dev/api/liquid/objects/app).

To learn more about conditional app blocks, refer to [Theme app extensions framework](https://shopify.dev/apps/online-store/theme-app-extensions/extensions-framework#conditional-app-blocks).
