Modify or Remove the Structured Data
By default, WP Job Openings adds JobPosting structured data to all the active jobs. Adding structured data makes your job postings eligible to appear in a special user experience in Google Search results. WP Job Openings uses the Google recommended JSON-LD format for the structured data. You can use the below code snippets to modify or remove the structured data.

Modify the structured data

Including the excerpt as the Job Description instead of post content.
1
function awsm_job_custom_structured_data( $data ) {
2
$data['description'] = wpautop( get_the_excerpt() );
3
return $data;
4
}
5
add_filter( 'awsm_job_structured_data', 'awsm_job_custom_structured_data' );
Copied!

Remove the structured data

1
add_filter( 'awsm_job_structured_data', '__return_empty_string' );
Copied!
Last modified 7mo ago
Copy link