• Resolved maxman1850

    (@maxman1850)


    Hi,

    I want to disable the WP Job Manager structured data.

    I’ve tried to disable it by adding add_filter( 'wpjm_get_job_listing_structured_data', '__return_false' ); to my functions.php

    Also adding 99 priority to this filter doesn’t work.

    I don’t want to use the Code Snippets plugin and am seeking for a code solution, can you provide me with one?

    Kind regards

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Jen H. (a11n)

    (@jenhooks)

    Hi @maxman1850,

    Try this instead:

    add_filter( 'wpjm_output_job_listing_structured_data', '__return_false' );

    Cheers.

    Thread Starter maxman1850

    (@maxman1850)

    Thanks for the reply, unfortunately that doesn’t work either. With or without 99 priority, the structured data is still visible.

    Plugin Contributor Jen H. (a11n)

    (@jenhooks)

    Hi @maxman1850,

    I’ve double checked the snippet I gave you, and it should work for you. In fact, the snippet you used should work, as well.

    Is <!-- WP Job Manager Structured Data --> above the structured data you’re seeing in your site’s source? If not, what you’re seeing is coming from something other than WP Job Manager. Perhaps from your theme?

    Cheers.

    Thread Starter maxman1850

    (@maxman1850)

    You were right, your code is working! Looks like a caching issue I was facing.

    Thank you very much!

    Plugin Contributor Jen H. (a11n)

    (@jenhooks)

    Thanks for the followup, @maxman1850! Glad to hear it.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Disable Structured Data’ is closed to new replies.