WPSEO_Post_Type_Sitemap_Provider::__construct()publicYoast 1.0

Set up object properties for data reuse.

{} Это метод класса: WPSEO_Post_Type_Sitemap_Provider{}

Хуки из метода

Возвращает

null. Ничего.

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

$WPSEO_Post_Type_Sitemap_Provider = new WPSEO_Post_Type_Sitemap_Provider();
$WPSEO_Post_Type_Sitemap_Provider->__construct();

Код WPSEO_Post_Type_Sitemap_Provider::__construct() Yoast 19.6.1

public function __construct() {
	add_filter( 'save_post', [ $this, 'save_post' ] );

	/**
	 * Filter - Allows excluding images from the XML sitemap.
	 *
	 * @param bool $include True to include, false to exclude.
	 */
	$this->include_images = apply_filters( 'wpseo_xml_sitemap_include_images', true );
}