Forked from travislopes/fg_entryautomation_search_criteria.php
Created
August 21, 2017 15:45
-
-
Save ForGravity/4ad95d2707de03be4189f4500db8c7fb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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