Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Ne pas enregistrer la valeur d'un champ ACF
// Article/tutoriel complet sur
// Documentation officielle
* Comparer la valeur de 2 champs pour accepter/refuser leur validation
* Filtre : acf/update_value
function msk_acf_do_not_save_field_value($value, $post_id, $field) {
return null;
//add_filter('acf/update_value/type=password', 'msk_acf_do_not_save_field_value', 10, 3);
add_filter('acf/update_value/name=annonceur_mot_de_passe', 'msk_acf_do_not_save_field_value', 10, 3);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment