WordPress at Your Fingertips
function is not described

wc_do_deprecated_action() WC 3.0.0

Runs a deprecated action with notice only if used.

Hooks from the function


null. Nothing.


wc_do_deprecated_action( $tag, $args, $version, $replacement, $message );
$tag(string) (required)
The name of the action hook.
$args(array) (required)
Array of additional function arguments to be passed to do_action().
$version(string) (required)
The version of WooCommerce that deprecated the hook.
The hook that should have been used.
Default: null
A message regarding the change.
Default: null


Since 3.0.0 Introduced.

Code of wc_do_deprecated_action() WC 6.1.1

function wc_do_deprecated_action( $tag, $args, $version, $replacement = null, $message = null ) {
	if ( ! has_action( $tag ) ) {

	wc_deprecated_hook( $tag, $version, $replacement, $message );
	do_action_ref_array( $tag, $args );