WPSEO_Admin_Recommended_Replace_Vars::determine_for_term()publicYoast 1.0

Determines the page type of the current term.

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

Хуков нет.

Возвращает

Строку. The page type.

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

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

Код WPSEO_Admin_Recommended_Replace_Vars::determine_for_term() Yoast 22.4

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

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