WordPress at a glance
function is not described

wc_deprecated_argument() WC 3.0.0

Wrapper for deprecated arguments so we can apply some extra logic.

Hooks from the function
Return

null. Nothing.

Usage

wc_deprecated_argument( $argument, $version, $message );
$argument(string) (required)
-
$version(string) (required)
-
$message **
-
Default: null

Changelog

Since 3.0.0 Introduced.

Code of wc_deprecated_argument() WC 5.3.0

<?php
function wc_deprecated_argument( $argument, $version, $message = null ) {
	if ( is_ajax() || WC()->is_rest_api_request() ) {
		do_action( 'deprecated_argument_run', $argument, $message, $version );
		error_log( "The {$argument} argument is deprecated since version {$version}. {$message}" );
	} else {
		_deprecated_argument( $argument, $version, $message );
	}
}