Filter
rpress_block_storefront_supported
On this page
Filters whether the block storefront is supported on this site.
Defaults to true when wp_interactivity_state() and wp_register_script_module() exist. When false, the storefront blocks fall back to the classic shortcode storefront.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$supported | bool | Whether the site supports the Interactivity API features the blocks need. |
Return value#
bool. Whether the block storefront is supported.
Example#
add_filter( 'rpress_block_storefront_supported', 'my_block_storefront_supported', 10, 1 );
function my_block_storefront_supported( $supported ) {
return false;
}
Source#
Applied in:
includes/features/block-storefront/functions.php(line 50), inrpress_block_storefront_supported()
Was this page helpful?
