Filters whether an object deletion should take place. Equivalent to `pre_delete_post`.
null, $this, $force_delete
Sortie :
@param mixed $check Whether to go ahead with deletion. @param WC_Data $this The data object being deleted. @param bool $force_delete Whether to bypass the trash.
// Modifier la valeur avec le filtre 'woocommerce_pre_delete_$this->object_type'
add_filter('woocommerce_pre_delete_$this->object_type', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre(null) {
// Modifier la valeur
return null;
}
Chargement des actualités...