Skip to content

v1.0.1 - Etch Compatibility Update

Choose a tag to compare

@Jehu Jehu released this 20 Nov 09:26
· 84 commits to main since this release

πŸ”§ 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, and etch/component blocks
  • Added: New filter mwe_etchwp_processable_blocks to 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

  1. Download mwe-etchwp-enhancements-1.0.1.zip below
  2. Upload to WordPress via Plugins > Add New > Upload Plugin
  3. Activate the plugin

For full documentation, see README.md