Skip to content

Instantly share code, notes, and snippets.

@matadorjobs
Last active October 7, 2022 12:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matadorjobs/fa42614dc62bca09746c5abd348a397c to your computer and use it in GitHub Desktop.
Save matadorjobs/fa42614dc62bca09746c5abd348a397c to your computer and use it in GitHub Desktop.
// 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