Last active
October 7, 2022 12:19
-
-
Save matadorjobs/fa42614dc62bca09746c5abd348a397c to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// replace the standard values of "Submitted" or "new Lead" | |
add_filter( 'matador_data_source_status', function(){ | |
return 'Candidate'; | |
} ); | |
/** | |
* Matador Data Status Description | |
* | |
* Adjusts the value of the status for the Bullhorn data item. IE: "New Lead" | |
* | |
* @since 3.5.1 | |
* | |
* @var string $status The value of status. Set initially by default or by settings. | |
* @var string $entity Limit scope of filter in to an entity | |
* @var \stdClass $data. The associated data with the $context. Should not be used without $context first. | |
* @var array $submission The associated data with the $context's submission. | |
* | |
* @return string The filtered value of status. | |
*/ | |
add_filter( 'matador_data_source_status', function ( $status, 'candidate', $candidate, $application ) { | |
// Adjust the status and reutn the new value. | |
return $status; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment