WordPress at Your Fingertips
function is not described

WC_Admin_Setup_Wizard::get_activate_error_message() protected WC 1.0

  • @deprecated 4.6.0

{} It's a 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: ''

Code of WC_Admin_Setup_Wizard::get_activate_error_message() WC 5.9.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'];
}