Hi @chrisshoerner,
Can I ask you why would you want to disable them? Did they work incorrectly for you?
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.
@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 );