WC_Admin_Meta_Boxes::append_to_error_store()
will be added to the persistent error store via the Options API.
{} It's a method of the class: WC_Admin_Meta_Boxes{}
No Hooks.
Return
null
. Nothing.
Usage
$WC_Admin_Meta_Boxes = new WC_Admin_Meta_Boxes(); $WC_Admin_Meta_Boxes->append_to_error_store();
Changelog
Since 6.5.0 | Introduced. |
Code of WC_Admin_Meta_Boxes::append_to_error_store() WC Admin Meta Boxes::append to error store WC 6.7.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 ) ) ); }