Filter the allowed session meta data keys. If the customer object contains any meta data with these keys, it will be stored within the WooCommerce session.
array(
Sortie :
@param array $allowed_keys The allowed meta data keys. @param WC_Customer $customer The customer object.
// Modifier la valeur avec le filtre 'woocommerce_customer_allowed_session_meta_keys'
add_filter('woocommerce_customer_allowed_session_meta_keys', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre(array() {
// Modifier la valeur
return array(;
}
Chargement des actualités...