WPSEO_Admin_Editor_Specific_Replace_Vars::determine_for_term()publicYoast 1.0

Determines the page type of the current term.

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

Хуков нет.

Возвращает

Строку. The page type.

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

$WPSEO_Admin_Editor_Specific_Replace_Vars = new WPSEO_Admin_Editor_Specific_Replace_Vars();
$WPSEO_Admin_Editor_Specific_Replace_Vars->determine_for_term( $taxonomy );
$taxonomy(строка) (обязательный)
The taxonomy name.

Код WPSEO_Admin_Editor_Specific_Replace_Vars::determine_for_term() Yoast 19.7.1

public function determine_for_term( $taxonomy ) {
	$replacement_variables = $this->get();
	if ( array_key_exists( $taxonomy, $replacement_variables ) ) {
		return $taxonomy;
	}

	return 'term-in-custom-taxonomy';
}