formcierge_after_status_change
Action

Since v1.0.0

Fires after an entry's status has been changed. Both the new and old status values are provided.

Parameters
$entry_id int The entry ID.
$new_status string The status the entry was changed to.
$old_status string The status the entry had before the change.
Defined in
includes/Controllers/EntryController.php
add_action( 'formcierge_after_status_change', function ( $entry_id, $new_status, $old_status ) {
    if ( $new_status === 'completed' && $old_status !== 'completed' ) {
        my_trigger_fulfillment( $entry_id );
    }
}, 10, 3 );