Forked from ForGravity/fg_entryautomation_search_criteria.php
Created
August 15, 2019 23:53
-
-
Save travislopes/165a9ff88366a94dc40e81a14ac30f16 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