Get customer download permissions from the database.
$data_store->get_downloads_for_customer( $customer_id
Sortie :
@param int $customer_id Customer/User ID. @return array
// Modifier la valeur avec le filtre 'woocommerce_permission_list'
add_filter('woocommerce_permission_list', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre($data_store->get_downloads_for_customer( $customer_id) {
// Modifier la valeur
return $data_store->get_downloads_for_customer( $customer_id;
}
Chargement des actualités...