WC_Deprecated_Hooks::display_notice( string $old_hook, string $new_hook )

Display a deprecated notice for old hooks.


Description Description


Parameters Parameters

$old_hook

(Required) Old hook.

$new_hook

(Required) New hook.


Top ↑

Source Source

File: includes/abstracts/abstract-wc-deprecated-hooks.php

	protected function display_notice( $old_hook, $new_hook ) {
		wc_deprecated_hook( esc_html( $old_hook ), esc_html( $this->get_deprecated_version( $old_hook ) ), esc_html( $new_hook ) );
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.