Gform_after_update_entry and gform_delete_entry not working

gform_after_submission_9 is working but gform_after_update_entry and gform_delete_entry are not working.
I don’t know why is not work.
Here is my action hook

add_action( 'gform_after_update_entry_9', 'update_leave', 10, 2 );
function update_leave($form, $entry_id,$original_entry) {
		global $wpdb;
		$form_id = $form['id'];
		$new_entry = GFAPI::get_entry( $entry_id );

	$search_criteria = array(
				'field_filters' => array(
					'mode' => 'all',
					array(
						'key'   => 23,
						'value' => $entry_id
					)
				),
			);
$entries_workshift = GFAPI::get_entries( 4, $search_criteria);
$entries_workshift[13] = rgar($new_entry, '7'); 
$result = GFAPI::update_entry($entries_workshift);
}

Gravity Forms v2.8.15

gform_after_update_entry only runs when the entry is updated via the entry detail page.

If you need a hook that is triggered when an entry is updated via the GFAPI or REST API, you would use gform_post_update_entry

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.