• Resolved payamdigi

    (@payamdigi)


    hello

    I want to remove structured data created by YASR. I manually merged it with built-in woocommerce structured data.

    this code stoped working after recent update:

    global $yasr_additional_rich_fields;
    remove_action('the_content', array($yasr_additional_rich_fields, 'addSchema'), 99);

    thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor dudo

    (@dudo)

    Hello!

    This is beacuse now if YASR is not able to add the structured data into the content, will try into wp_footer.

    New code

    global $yasr_additional_rich_fields;
    remove_filter('the_content', array($yasr_additional_rich_fields, 'addSchema'), 99);
    remove_action('wp_footer', array($yasr_additional_rich_fields, 'addSchema'));

    Best,
    Dario

    Thread Starter payamdigi

    (@payamdigi)

    solved!

    thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘how to remove YASR structured data’ is closed to new replies.