WPSEO_Admin_Editor_Specific_Replace_Vars::__construct()publicYoast 1.0

WPSEO_Admin_Editor_Specific_Replace_Vars constructor.

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

Хуков нет.

Возвращает

null. Ничего.

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

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

Код WPSEO_Admin_Editor_Specific_Replace_Vars::__construct() Yoast 19.7.1

public function __construct() {
	$this->add_for_page_types(
		[ 'page', 'post', 'custom_post_type' ],
		WPSEO_Custom_Fields::get_custom_fields()
	);

	$this->add_for_page_types(
		[ 'post', 'term-in-custom-taxonomy' ],
		WPSEO_Custom_Taxonomies::get_custom_taxonomies()
	);
}