v1.0.1 - Etch Compatibility Update
π§ Etch Compatibility Update
This release updates block type detection to support the new Etch block architecture.
β¨ Changes
- Fixed: Updated block type detection for Etch compatibility
- Changed: Now supports
etch/element,etch/dynamic-element,etch/raw-html, andetch/componentblocks - Added: New filter
mwe_etchwp_processable_blocksto customize which block types are processed - Removed: Support for legacy
etch/block(no longer exists in current Etch versions) - Improved: Better code documentation and centralized block detection logic
π Requirements
- Etch page builder (v1.0.0-alpha-14 or higher)
- PHP 8.1 or higher
- WordPress 5.9 or higher
π New Filter
The new mwe_etchwp_processable_blocks filter allows you to customize which block types are processed:
// Add a custom block type
add_filter( 'mwe_etchwp_processable_blocks', function( $blocks ) {
$blocks[] = 'etch/custom-block';
return $blocks;
} );
// Remove a specific block
add_filter( 'mwe_etchwp_processable_blocks', function( $blocks ) {
return array_diff( $blocks, array( 'etch/raw-html' ) );
} );π¦ Installation
- Download
mwe-etchwp-enhancements-1.0.1.zipbelow - Upload to WordPress via Plugins > Add New > Upload Plugin
- Activate the plugin
For full documentation, see README.md