WC_Admin_Setup_Wizard::get_activate_error_message
Deprecated since 4.6.0. It is no longer supported and may be removed in future releases. It is recommended to replace this function with the same one.
Get activate error message.
Method of the class: WC_Admin_Setup_Wizard{}
No Hooks.
Returns
String.
Usage
// protected - for code of main (parent) or child class $result = $this->get_activate_error_message( $code );
- $code(string)
- Error code.
Default:''
Changelog
| Deprecated since | 4.6.0 |
WC_Admin_Setup_Wizard::get_activate_error_message() WC Admin Setup Wizard::get activate error message code WC 10.6.2
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'];
}