• Resolved mansour

    (@rosemusic)


    hi i want disable Person & ImageObject in json-ld, i use this filters:
    add_filter( ‘wpseo_schema_needs_imageObject’, ‘__return_false’);
    add_filter( ‘wpseo_schema_needs_person’, ‘__return_false’ );
    but this filters dosnt work in verson 11.7

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support amboutwe

    (@amboutwe)

    add_filter( ‘wpseo_schema_needs_imageObject’, ‘__return_false’);

    imageObject is not a graph piece class. Please use
    add_filter( 'wpseo_schema_needs_mainimage', '__return_false');

    add_filter( ‘wpseo_schema_needs_person’, ‘__return_false’ );

    The person schema removed with this filter is the one selected from
    SEO → Search Appearance → Knowledge Graph & Schema.org

    If you have not selected ‘Person’ or a user to be assigned, this filter is ignored because the person schema related to this filter is not output when information is missing.

    We are going ahead and marking this issue as resolved due to inactivity. If you require any further assistance please create a new issue.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Enable / disabling graph pieces by filter dosnt work’ is closed to new replies.