WPCodeBox 2.0 Beta brings an array of exciting features that aim to enhance the management and execution of WordPress code snippets, ensuring safer development and fewer errors. Here’s a breakdown of the key features and improvements:
New Code Editor Features:
- Monaco Editor Integration: Enhanced code editing experience for improved productivity.
- Autocomplete for WordPress Actions & Filters: Intuitive suggestions and quick reference for hooks, actions, and filters, with hover-over information display.
- Color Picker for CSS/SCSS/LESS: In-editor color selection tool for better design customization.
- WordPress Hooks Reference on Hover: Instant understanding of actions and filters when hovered over in the editor.
Functionality Plugin (Experimental):
- Save and Execute Snippets from Functionality Plugin: Snippets can be saved as PHP files in a functionality plugin, enabling inclusion in other snippets and overriding templates of plugins like WooCommerce.
- Execute Snippets via Secure External URL: Ability to trigger snippet execution using third-party services like Zapier or Easy Cron.
Execute Snippets using Shortcodes & Custom Actions:
- Insert Snippets via Custom Shortcodes: Create custom shortcodes or insert snippets using custom actions.
- Execute Snippets with WooCommerce Actions: Insert PHP/HTML snippets into WooCommerce actions.
New Conditions:
- User Is Logged-In Status: Control snippet execution based on user login status (logged in/logged out).
- User Device Condition: Execute snippets based on the user’s device (desktop/mobile).
SCSS Partials:
- SCSS Partial Support: Create small SCSS code snippets to be included in other SCSS snippets, improving code organization and reuse.
Quality of Life Improvements:
- Enhanced Error Detection: Improved detection of errors to minimize the need for safe mode activation.
- Active Safe Mode Notification: Notifies users when safe mode is active, preventing snippet execution issues.
This overview provides a glimpse of the major features in WPCodeBox 2.0 Beta, aiming to streamline WordPress code snippet management and development processes. The Beta release is available for download, but caution is advised as it’s still under testing. Testing on a staging site before full deployment is recommended.