Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
Favorites::set_meta_value( string|AutomatticWooCommerceAdminFeaturesNavigationnumber $user_id, array $favorites )
Set given favorites string to the user meta data.
Description Description
Parameters Parameters
- $user_id
-
(Required) User id.
- $favorites
-
(Required) Array of favorite values to set.
Source Source
File: packages/woocommerce-admin/src/Features/Navigation/Favorites.php