Automattic\WooCommerce\Internal\DataStores\Orders

CustomOrdersTableController::hide_feature()publicWC 1.0

Hides the feature, so that no entries will be added to the debug tools page.

This method shouldn't be used anymore, see the FeaturesController class.

Метод класса: CustomOrdersTableController{}

No Hooks.

Return

null. Nothing.

Usage

$CustomOrdersTableController = new CustomOrdersTableController();
$CustomOrdersTableController->hide_feature();

Code of CustomOrdersTableController::hide_feature() WC 7.1.0

public function hide_feature() {
	$class_and_method = ( new \ReflectionClass( $this ) )->getShortName() . '::' . __FUNCTION__;
	wc_doing_it_wrong(
		$class_and_method,
		__( "${class_and_method}: The visibility of the custom orders table feature is now handled by the WooCommerce features engine. See the FeaturesController class, or go to WooCommerce - Settings - Advanced - Features.", 'woocommerce' ),
		'7.0'
	);
}