doing_it_wrong_run хук-событиеWC 1.0

Это хук WordPress - doing_it_wrong_run. Плагин его просто использует.

Fires when the given function is being used incorrectly.

Использование

add_action( 'doing_it_wrong_run', 'wp_kama_doing_it_wrong_run_action', 10, 3 );

/**
 * Function for `doing_it_wrong_run` action-hook.
 * 
 * @param string $function_name The function that was called.
 * @param string $message       A message explaining what has been done incorrectly.
 * @param string $version       The version of WordPress where the message was added.
 *
 * @return void
 */
function wp_kama_doing_it_wrong_run_action( $function_name, $message, $version ){

	// action...
}
$function_name(строка)
The function that was called.
$message(строка)
A message explaining what has been done incorrectly.
$version(строка)
The version of WordPress where the message was added.

Где вызывается хук

wc_doing_it_wrong()
doing_it_wrong_run
woocommerce/includes/wc-deprecated-functions.php 117
do_action( 'doing_it_wrong_run', $function, $message, $version );

Где используется хук в WooCommerce

Использование не найдено.