changed plugin name to cipf

This commit is contained in:
asus
2024-03-07 22:35:39 +01:00
parent be79310404
commit 9b5e44dfd3
45 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
<?php
/*
* it means someone outside wp is accessing the file, in this case kill it.
*/
if (!defined('ABSPATH')) {
die('You can not access this file!');
}
/*
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_action('df_after_insert_user', 'reset_some_fields_CIPF');
?>