• Hello

    What is the hook to disable schema.org creation of PodcastEpisode and PodcastSeries.

    While we are on the topic of hooks: where are they all listed. I could not find it on the help center.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Serhiy Zakharchenko

    (@zahardoc)

    Hi @chrisshoerner,

    Can I ask you why would you want to disable them? Did they work incorrectly for you?

    Thread Starter chrisshoerner

    (@chrisshoerner)

    Hello,

    Information on the moderators and guests is missing. I can not find how to include them.
    Also, parts of the swema are invalid

    http://schema.org/OnlineEventAttendanceMode (The property eventAttendanceMode is not recognized by the schema (e.g. schema.org) for an object of type PodcastEpisode).

    The property location is not recognised by the schema (e.g. schema.org) for an object of type PodcastEpisode.

    Maybe I’m just too stupid to find this in the plugin, I can’t rule that out.

    Plugin Author Serhiy Zakharchenko

    (@zahardoc)

    @chrisshoerner

    Thank you for bringing this to our attention. We’ll consider removing these properties in a future plugin version. As they only trigger validation warnings, not errors, they shouldn’t cause any issues. However, if you’d prefer to disable the plugin’s integration, you can use the following code snippet:

    add_filter( '__wpseo_schema_graph_pieces', function ( $pieces ) {
    foreach ( $pieces as $k => $piece ) {
    if (
    $piece instanceof \SeriouslySimplePodcasting\Integrations\Yoast\Schema\PodcastEpisode ||
    $piece instanceof \SeriouslySimplePodcasting\Integrations\Yoast\Schema\PodcastSeries
    ){
    unset( $pieces[ $k ] );
    }
    }

    return $pieces;
    }, 20 );
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Disable schema.org’ is closed to new replies.