Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
add_filter( 'fg_entryautomation_search_criteria', 'only_automate_failed_payments', 10, 3 );
function only_automate_failed_payments( $search_criteria, $feed, $form ) {
$search_criteria['field_filters'][] = array( 'key' => 'payment_status', 'value' => 'Failed' );
return $search_criteria;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.