WPSEO_Post_Type_Sitemap_Provider::__construct
Set up object properties for data reuse.
Метод класса: WPSEO_Post_Type_Sitemap_Provider{}
Хуки из метода
Возвращает
null. Ничего (null).
Использование
$WPSEO_Post_Type_Sitemap_Provider = new WPSEO_Post_Type_Sitemap_Provider(); $WPSEO_Post_Type_Sitemap_Provider->__construct();
Код WPSEO_Post_Type_Sitemap_Provider::__construct() WPSEO Post Type Sitemap Provider:: construct Yoast 27.7
public function __construct() {
add_action( '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 );
}