Automattic\WooCommerce\Admin\Features\Navigation

RemovedDeprecated::handle_deprecated_method_call()private staticWC 1.0

Handle deprecated method calls.

Method of the class: RemovedDeprecated{}

No Hooks.

Return

null. Nothing (null).

Usage

$result = RemovedDeprecated::handle_deprecated_method_call( $name );
$name(string) (required)
The name of the deprecated method.

RemovedDeprecated::handle_deprecated_method_call() code WC 9.7.1

private static function handle_deprecated_method_call( $name ) {
	$logger = wc_get_logger();

	if ( $logger ) {
		$logger->warning(
			"The WooCommerce Admin Navigation feature and its classes (Screen, Menu, CoreMenu) are deprecated since 9.3 with no alternative. Please remove the call to $name."
		);
	}

	if ( class_exists( 'WC_Tracks' ) ) {
		WC_Tracks::record_event( 'deprecated_navigation_method_called' );
	}
}