WordPress at Your Fingertips
function is not described

WC_Deprecated_Hooks::get_deprecated_version() protected WC 1.0

Get deprecated version.

{} It's a method of the class: WC_Deprecated_Hooks{}

No Hooks.

Return

String.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_deprecated_version( $old_hook );
$old_hook(string) (required)
Old hook name.

Code of WC_Deprecated_Hooks::get_deprecated_version() WC 5.8.0

protected function get_deprecated_version( $old_hook ) {
	return ! empty( $this->deprecated_version[ $old_hook ] ) ? $this->deprecated_version[ $old_hook ] : Constants::get_constant( 'WC_VERSION' );
}