WC_Settings_API::add_error( string $error )

Add an error message for display in admin on save.


Description Description


Parameters Parameters

$error

(Required) Error message.


Top ↑

Source Source

File: includes/abstracts/abstract-wc-settings-api.php

	public function add_error( $error ) {
		$this->errors[] = $error;
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.