diff --git a/plugins/woocommerce/src/Admin/Features/Features.php b/plugins/woocommerce/src/Admin/Features/Features.php index b324913e5eb..90ed9b28dfc 100644 --- a/plugins/woocommerce/src/Admin/Features/Features.php +++ b/plugins/woocommerce/src/Admin/Features/Features.php @@ -27,7 +27,6 @@ class Features { */ protected static $optional_features = array( 'navigation' => array( 'default' => 'no' ), - // 'settings' => array( 'default' => 'no' ), 'analytics' => array( 'default' => 'yes' ), 'remote-inbox-notifications' => array( 'default' => 'yes' ), ); diff --git a/plugins/woocommerce/src/Admin/Features/Settings.php b/plugins/woocommerce/src/Admin/Features/Settings.php index cb4ffc4a1d2..af30f38eadc 100644 --- a/plugins/woocommerce/src/Admin/Features/Settings.php +++ b/plugins/woocommerce/src/Admin/Features/Settings.php @@ -11,11 +11,6 @@ use Automattic\WooCommerce\Admin\PageController; * Contains backend logic for the Settings feature. */ class Settings { - /** - * Option name used to toggle this feature. - */ - const TOGGLE_OPTION_NAME = 'woocommerce_settings_enabled'; - /** * Class instance. * @@ -42,11 +37,6 @@ class Settings { } add_filter( 'woocommerce_settings_features', array( $this, 'add_feature_toggle' ) ); - - if ( 'yes' !== get_option( 'woocommerce_settings_enabled', 'no' ) ) { - return; - } - add_filter( 'woocommerce_admin_shared_settings', array( __CLASS__, 'add_component_settings' ) ); // Run this after the original WooCommerce settings have been added. add_action( 'admin_menu', array( $this, 'register_pages' ), 60 );