%s', $wrapper_classes, $wrapper_styles, $block_content ); return $wrapped_content; } // Apply the filter to render blocks add_filter('render_block', 'blynex_apply_frontend_hover_effects', 10, 2); /** * Enqueue frontend hover effect styles and debug script */ function blynex_enqueue_frontend_hover_styles() { if (!is_admin()) { wp_enqueue_style( 'blynex-hover-effects-frontend', get_template_directory_uri() . '/build/style-index.css', array(), wp_get_theme()->get('Version') ); } } add_action('wp_enqueue_scripts', 'blynex_enqueue_frontend_hover_styles');