• Trying to dequeue the stylesheet and js on the frontend:

    add_action('wp_print_scripts', 'se_deregister_stylesheets_scripts', 999 );
    function se_deregister_stylesheets_scripts() {
        if( is_admin() ){
            // Do Nothing
        }else{
            wp_deregister_style('wp-gallery-metabox');
            wp_deregister_script('wp-gallery-metabox');
        }
    }
  • The topic ‘Unable to Dequeue Script and StyleSheet’ is closed to new replies.