Why You Need It
The frontend icon provides quick access to asset controls while viewing the site. This is useful for debugging and testing asset changes.
How to Enable this Feature
Step 1: Navigate to Settings
Click into the Classic Monks plugin settings, then the Performance tab, Assets Manager subtab.
Step 2: Enable the Feature
Toggle on the feature.
Step 3: Save and Test
Click Save Changes. Test on the frontend.
Common Use Cases
Debugging
When testing asset changes, the frontend icon provides instant access to the controls.
Quick toggling
Toggle assets on/off directly from the frontend without navigating to the admin.
Troubleshooting
The feature is not taking effect
Cause: The toggle is off, or a caching plugin is serving the old page.
Fix: Verify the toggle is on. Clear all caching layers.
The feature breaks another plugin
Cause: Another plugin depends on the functionality that this feature disables.
Fix: Disable this feature if it breaks another plugin.
Developer integration
This feature registers 2 WordPress hooks in assets-manager.php:
Actions:
wp_footercallsrender_frontend_icon()(Renders the floating frontend icon (priority 100))admin_bar_menucallsadd_admin_bar_node()(Adds Assets Manager node to admin bar (priority 1000))
// Hooked in assets-manager.php
add_action( 'wp_footer', 'render_frontend_icon' );
The feature modifies WordPress behavior by registering or removing hooks. Disabling it reverses those changes and WordPress returns to its default behavior.
Before you enable this feature
- Test on staging first to verify no conflicts with your theme or other plugins
- Check dependent plugins that may rely on the functionality being modified
- Monitor after enabling for any unexpected behavior on the frontend
How it works under the feature
This feature runs during the WordPress initialization phase. When enabled, its PHP code registers hooks that modify specific WordPress behaviors. The changes are non-destructive and reversible.
No database schema changes are made. The feature state is stored as a boolean value in the wp_options table and can be toggled at any time from the admin settings.