1. Home
  2. Developer
  3. Code Snippets
  4. Change the Bullhorn field used as the Job title

Change the Bullhorn field used as the Job title

You can control which field we pull from Bullhorn to use as the Job title with this code

/**
 * Matador  job Title to use customtext1
 */
add_filter( 'matador_import_job_title_field', function ( $field ) {

   return 'customText1';
} ); 

you may need flatten the the data with this code if the selected object returns an array

/**
* Matador job Title check is array and
flatten if so
*/
add_filter( 'matador_import_job_title', function ( $title ) {

if( is_array( $title ) ) {
return $title[0];
}
return $title;
} );

Updated on September 25, 2023
Was this article helpful?

Related Articles

Need Support?
Can't find the answer you're looking for?
Contact Support