WC_Admin_Meta_Boxes::save_errors()publicWC 1.0

Save errors to an option.

Note that calling this will overwrite any errors that have already been stored via the Options API. Unless you are sure you want this, consider using the append_to_error_store() method instead.

Метод класса: WC_Admin_Meta_Boxes{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$WC_Admin_Meta_Boxes = new WC_Admin_Meta_Boxes();
$WC_Admin_Meta_Boxes->save_errors();

Код WC_Admin_Meta_Boxes::save_errors() WC 8.7.0

public function save_errors() {
	update_option( self::ERROR_STORE, self::$meta_box_errors );
}