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