WC_Admin_Meta_Boxes::append_to_error_store
If additional errors have been added in the current request (ie, via the add_error() method) then they will be added to the persistent error store via the Options API.
Метод класса: WC_Admin_Meta_Boxes{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$WC_Admin_Meta_Boxes = new WC_Admin_Meta_Boxes(); $WC_Admin_Meta_Boxes->append_to_error_store();
Список изменений
| С версии 6.5.0 | Введена. |
Код WC_Admin_Meta_Boxes::append_to_error_store() WC Admin Meta Boxes::append to error store WC 10.4.0
public function append_to_error_store() {
if ( empty( self::$meta_box_errors ) ) {
return;
}
$existing_errors = get_option( self::ERROR_STORE, array() );
update_option( self::ERROR_STORE, array_unique( array_merge( $existing_errors, self::$meta_box_errors ) ) );
}