Yoast\WP\SEO\Generators\Schema\Third_Party
Events_Calendar_Schema::is_needed() public Yoast 1.0
Determines whether or not a piece should be added to the graph.
{} Это метод класса: Events_Calendar_Schema{}
Хуков нет.
Возвращает
true/false.
Использование
$Events_Calendar_Schema = new Events_Calendar_Schema(); $Events_Calendar_Schema->is_needed();
Код Events_Calendar_Schema::is_needed() Events Calendar Schema::is needed Yoast 15.7
public function is_needed() {
if ( \is_single() && \get_post_type() === 'tribe_events' ) {
// The single event view.
return true;
}
elseif ( \tribe_is_month() ) {
// The month event view.
return true;
}
return false;
}