Skip to content

Instantly share code, notes, and snippets.

@joshuatf
Created March 11, 2020 09:44
Show Gist options
  • Save joshuatf/006111b6f43c3ab3d2cad39e3443822b to your computer and use it in GitHub Desktop.
Save joshuatf/006111b6f43c3ab3d2cad39e3443822b to your computer and use it in GitHub Desktop.
A plugin to disable the new WooCommerce Admin package in WooCommerce
<?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