created a new function to filter emails
This commit is contained in:
19
plugins/fipfcard_plugin/php/reset_acf_fields.php
Normal file
19
plugins/fipfcard_plugin/php/reset_acf_fields.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
|
||||
/*
|
||||
function reset_some_fields_CIPF($form_id, $user_id, $post_array) {
|
||||
function reset_some_fields_CIPF() {
|
||||
$user_id = get_current_user_id();
|
||||
update_field('cgv', array(""), 'user_'.$user_id);
|
||||
update_field('paiement', array(""), 'user_'.$user_id);
|
||||
update_field('livraison', array(""), 'user_'.$user_id);
|
||||
}
|
||||
add_shortcode('test_reset_acf', 'reset_some_fields_CIPF');
|
||||
*/
|
||||
/*
|
||||
add_action('df_after_insert_user', 'reinit_some_fields_CIPF', 10, 3);
|
||||
*/
|
||||
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user