WC_Admin_Setup_Wizard::get_activate_error_message()
- @deprecated 4.6.0
Method of the class: WC_Admin_Setup_Wizard{}
No Hooks.
Return
null
. Nothing.
Usage
// protected - for code of main (parent) or child class $result = $this->get_activate_error_message( $code );
- $code **
- -
Default: ''
WC_Admin_Setup_Wizard::get_activate_error_message() WC Admin Setup Wizard::get activate error message code WC 7.5.1
protected function get_activate_error_message( $code = '' ) { _deprecated_function( __CLASS__ . '::' . __FUNCTION__, '4.6.0', 'Onboarding is maintained in WooCommerce Admin.' ); $errors = $this->get_all_activate_errors(); return array_key_exists( $code, $errors ) ? $errors[ $code ] : $errors['default']; }