WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Получай пассивный доход от сайта
класс не описан

Yoast\WP\SEO\Integrations\Third_Party

Exclude_Elementor_Post_Types{} Yoast 1.0

Excludes certain Elementor-specific post types from the indexable table.

Posts with these post types will not be saved to the indexable table.

Хуков нет.

Возвращает

null. Ничего.

Использование

$Exclude_Elementor_Post_Types = new Exclude_Elementor_Post_Types();
// use class methods

Методы

  1. get_conditionals()
  2. get_post_type()

Код Exclude_Elementor_Post_Types{} Yoast 16.8

<?php
class Exclude_Elementor_Post_Types extends Abstract_Exclude_Post_Type {

	/**
	 * This integration is only active when the Elementor plugin
	 * is installed and activated.
	 *
	 * @return array|string[] The conditionals.
	 */
	public static function get_conditionals() {
		return [ Elementor_Activated_Conditional::class ];
	}

	/**
	 * Returns the names of the post types to be excluded.
	 * To be used in the wpseo_indexable_excluded_post_types filter.
	 *
	 * @return array The names of the post types.
	 */
	public function get_post_type() {
		return [ 'elementor_library' ];
	}
}