WPSEO_Replace_Vars::get_replacement_variables_list()publicYoast 1.0

Generates a list of replacement variables based on the help texts.

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

Хуков нет.

Возвращает

Массив. List of replace vars.

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

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

Код WPSEO_Replace_Vars::get_replacement_variables_list() Yoast 22.3

public function get_replacement_variables_list() {
	self::setup_statics_once();

	$replacement_variables = array_merge(
		$this->get_replacement_variables(),
		WPSEO_Custom_Fields::get_custom_fields(),
		WPSEO_Custom_Taxonomies::get_custom_taxonomies()
	);

	return array_map( [ $this, 'format_replacement_variable' ], $replacement_variables );
}