WPSEO_Replace_Vars::get_hidden_replace_vars()publicYoast 1.0

Returns the list of hidden replace vars.

E.g. the replace vars that should work, but are not advertised.

Метод класса: WPSEO_Replace_Vars{}

Хуков нет.

Возвращает

Строку[]. The list of hidden replace vars.

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

$WPSEO_Replace_Vars = new WPSEO_Replace_Vars();
$WPSEO_Replace_Vars->get_hidden_replace_vars();

Код WPSEO_Replace_Vars::get_hidden_replace_vars() Yoast 22.4

public function get_hidden_replace_vars() {
	return [
		'currentdate',
		'currentyear',
		'currentmonth',
		'currentday',
		'post_year',
		'post_month',
		'post_day',
		'author_first_name',
		'author_last_name',
		'permalink',
		'post_content',
		'category_title',
	];
}