edit_user_created_user hook – using to update Groups

The GravityForms folks chimed in. To clarify, I wanted to add a row to a database table on user activation (not on form submit), and I had not found that hook. Here is the completed code… add_action( ‘gform_user_registered’, ‘hl_add_group’, 10, 4 ); function hl_add_group($user_id, $feed, $entry) { $group = $entry[8]; global $wpdb; // add form … Read more

I can’t separate the array by commas

implode(“,”, [500,756]) will definitely return “500,756”, therefore you have some other problem. If the field type of the ‘num’ field is a numeric type such as MySQL’s INT, then MySQL or PHP might try and convert this string to a number and so “500,756” could become 500. Check the data type of the ‘num’ field … Read more