Skip to content

Instantly share code, notes, and snippets.

@assoscoupa
Created January 3, 2021 12:36
Show Gist options
  • Save assoscoupa/015ea49b404dd5333cc6284bd7af402f to your computer and use it in GitHub Desktop.
Save assoscoupa/015ea49b404dd5333cc6284bd7af402f to your computer and use it in GitHub Desktop.
Disable WooCommerce Analytics
<?php
/**
* Plugin Name: Disable WooCommerce Admin
* Description: This plugin disables the new WooCommerce Admin package in WooCommerce.
* Version: 1.0
*/
add_filter( 'woocommerce_admin_disabled', '__return_true' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment