woocommerce_downloadable_file_permission_data

FILTER woocommerce\includes\data-stores\class-wc-customer-download-data-store.php (ligne 115) github
Create download permission for a user, from an array of data. Assumes that all the keys in the passed data are valid.

Paramètres

Entrée :
$data
Sortie :
@param array $data Data to create the permission for.
@return int The database id of the created permission, or false if the permission creation failed.

Utilisation

// Modifier la valeur avec le filtre 'woocommerce_downloadable_file_permission_data'
add_filter('woocommerce_downloadable_file_permission_data', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre($data) {
    // Modifier la valeur
    return $data;
}

Actualités

Chargement des actualités...