Skip to content

Commit dc28897

Browse files
authored
Create gform_after_submission_13
// بارگزاری در تیبل یوزرمتا با سابمیت کردن فرم گراویتی فرمز
1 parent 446209e commit dc28897

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

gform_after_submission_13

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// بارگزاری در تیبل یوزرمتا با سابمیت کردن فرم گراویتی فرمز
2+
<?php
3+
add_action("gform_after_submission_13", "baraks", 10, 2);
4+
function baraks($entry, $form){
5+
$current_meta_value = get_user_meta(get_current_user_id(), 'baraks', true);
6+
if (!$current_meta_value){
7+
update_user_meta(get_current_user_id(), 'baraks', 1);
8+
}
9+
}
10+
?>

0 commit comments

Comments
 (0)