created a new function to filter emails
This commit is contained in:
@@ -1,12 +1,19 @@
|
||||
<?php
|
||||
|
||||
|
||||
function reinit_some_fields_CIPF($form_id, $user_id, $post_array) {
|
||||
/*
|
||||
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);
|
||||
*/
|
||||
|
||||
|
||||
?>
|
||||
@@ -79,6 +79,7 @@ function current_user_infos_CIPF($atts) {
|
||||
$user_infos = merge_two_arrays_CIPF($user_metas, $user_properties);
|
||||
return output_list_front_CIPF($user_infos);
|
||||
}
|
||||
// only return the first argument
|
||||
$query = $atts[0];
|
||||
$output = $current_user->$query;
|
||||
if (is_string($output))
|
||||
|
||||
Reference in New Issue
Block a user