Hello again,
You need to do one to two things. First, you need to enable author support for the job post type:
add_filter( 'matador_post_type_supports_jobs', 'je3dev_add_author_support_to_job', 10, 1);
function je3dev_add_author_support_to_job( $supports ) {
$supports[] = 'author';
return $supports;
}
At this point, if I recall correctly, the author will be assigned to the default author, like the Administrator. So to determine the ownership of the job, if it matters, do this:
add_filter( 'matador_import_job_save_args', 'je3dev_job_author', 10, 3 );
je3dev_job_author( $args, $job, $wpid ) {
// If there is an ID, we are updating and not creating a job
if ( ! $wpid ) {
$args['post_author'] = 1; // Use the ID of the author
}
return $args;
}
This should do what you want. Let me know.
As a funny aside, we have this joke inside our team here at Matador that “everyone uses Bullhorn and WordPress differently.” I can’t tell you how much effort was put into actually not supporting authors initially. In fact, early in Matador (before it was even called Matador) I struggled to figure out how to do it! I chuckle that I’m helping restore something that so many of our pre-release users hated!
Thanks for the question!