This filter is executed when preparing the search criteria to retrieve entries for Automation.
add_filter( 'fg_entryautomation_search_criteria', 'your_function_name', 10, 3 );
The search criteria to be filtered.
The current Automation action’s settings.
The current Automation action’s form.
Search Only Failed Payments
This example will update the search criteria to only include entries whose payment failed.