WordPress at a glance
function is not described

wc_doing_it_wrong() WC 3.0.0

Wrapper for wc_doing_it_wrong.

Hooks from the function
Return

Null. Nothing.

Usage

wc_doing_it_wrong( $function, $message, $version );
$function(string) (required)
Function used.
$message(string) (required)
Message to log.
$version(string) (required)
Version the message was added in.

Changelog

Since 3.0.0 Introduced.

Code of wc doing it wrong: woocommerce/includes/wc-deprecated-functions.php WC 3.7.0

<?php
function wc_doing_it_wrong( $function, $message, $version ) {
	// @codingStandardsIgnoreStart
	$message .= ' Backtrace: ' . wp_debug_backtrace_summary();

	if ( is_ajax() || WC()->is_rest_api_request() ) {
		do_action( 'doing_it_wrong_run', $function, $message, $version );
		error_log( "{$function} was called incorrectly. {$message}. This message was added in version {$version}." );
	} else {
		_doing_it_wrong( $function, $message, $version );
	}
	// @codingStandardsIgnoreEnd
}