WC_Admin_Setup_Wizard::get_activate_error_message()protectedWC 1.0

  • @deprecated 4.6.0

Method of the class: WC_Admin_Setup_Wizard{}

No Hooks.

Return

null. Nothing (null).

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() code WC 8.7.0

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'];
}