WP Job Openings
  • Introduction
  • Getting Started
    • Installation
    • Shortcodes
  • Pro Pack for Wp Job Openings
    • WP Job Openings Pro
    • Installation
  • Overview
    • Job Openings Overview
  • Settings
    • General
    • Appearance
    • Job Specifications
    • Form
    • Notifications
  • Settings - Wp Job Openings Pro
    • Appearance
    • Job Specifications
    • Form
    • Notifications
    • Shortcodes
    • Advanced
  • Job Listing
    • Add New Openings
    • Job Listings
    • Job Listings – Admin
    • Customizing templates of your Job Listings
  • Applications
    • Application Listings
    • View Application
    • Spam Protection
  • EXPORT (PRO)
    • Export Applications
  • Widgets
    • Recent Jobs Widget
    • Job Overview Dashboard Widget
  • User Access Control Addon
    • User Access Control Add-on
    • Installation
    • Settings
    • Tutorial
  • JOB ALERTS ADDON
    • Job Alerts Add-on
      • How it works
      • Job Alerts Block
      • Job Alerts Emails
    • Installation
    • Settings
      • Appearance
      • Shortcode Generator
      • Email Settings
  • Other Add-ons
    • Docs Viewer Add-On for WP Job Openings
    • Auto Delete Applications – Add-on for WP Job Openings
  • Developers
    • Hooks
      • Actions
        • Application Actions
        • Application Details
        • Application Form
        • Application Submission
        • Email
        • Job Expiry
        • Job Listing
        • Job Specifications
        • Job Status
        • Settings
        • Widget - Recent Jobs
      • Filters
        • Application Form
        • Email
        • Job Filter
        • Job Specifications
        • Layout
        • Meta Data
        • Navigation
        • Post Type
        • Query
        • Settings
        • Shortcode
        • Structured Data
    • Code Snippets
      • Archive page title
      • Custom Application Status
      • Custom Permalink - Slug Issue
      • Limit the file size
      • Modify or Remove the Structured Data
      • Remove 'All' prefix from the filter
      • Remove job application form
      • Sort by title
    • WP-CLI
      • Managing Form Builder Options
    • CRM Integration
  • FAQ
  • Sources and Credits
Powered by GitBook
On this page

Was this helpful?

  1. Developers
  2. Code Snippets

Modify or Remove the Structured Data

PreviousLimit the file sizeNextRemove 'All' prefix from the filter

Last updated 4 years ago

Was this helpful?

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.

function awsm_job_custom_structured_data( $data ) {
	$data['description'] = wpautop( get_the_excerpt() );
	return $data;
}
add_filter( 'awsm_job_structured_data', 'awsm_job_custom_structured_data' );

Remove the structured data

add_filter( 'awsm_job_structured_data', '__return_empty_string' );

How to Easily Add Custom Code to Your WordPress Websites