• if it is of interest to someone, with this way you can solve the woocommerce dashicons bug

    function callback_dashicons_woocommerce($buffer_class_woocommerce) {
    
        $buffer_class_woocommerce = str_replace('menu-top toplevel_page_woocommerce', 'menu-top menu-icon-generic toplevel_page_woocommerce', $buffer_class_woocommerce);
    	$buffer_class_woocommerce = str_replace('menu-top toplevel_page_edit?post_type=product', 'menu-top menu-icon-product', $buffer_class_woocommerce);
    	$buffer_class_woocommerce = str_replace('toplevel_page_edit-post_type-product', 'menu-posts-product', $buffer_class_woocommerce);
    	
    
        return $buffer_class_woocommerce;
    }
    
    function buffer_start_replace_class() { ob_start("callback_dashicons_woocommerce"); }
    
    function buffer_end_replace_class() { ob_end_flush(); }
    
    add_action('admin_head', 'buffer_start_replace_class');
    add_action('admin_footer', 'buffer_end_replace_class');
    

    snippet to insert in the admin
    Bye
    4wpbari

  • The topic ‘i fixed the woocommerce dashicon bug’ is closed to new replies.