WC_Deprecated_Hooks::get_deprecated_version
Get deprecated version.
Method of the class: WC_Deprecated_Hooks{}
No Hooks.
Returns
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.
WC_Deprecated_Hooks::get_deprecated_version() WC Deprecated Hooks::get deprecated version code WC 10.8.1
protected function get_deprecated_version( $old_hook ) {
return ! empty( $this->deprecated_version[ $old_hook ] ) ? $this->deprecated_version[ $old_hook ] : Constants::get_constant( 'WC_VERSION' );
}