WPSEO_Admin_Editor_Specific_Replace_Vars::determine_for_term
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() WPSEO Admin Editor Specific Replace Vars::determine for term Yoast 26.7
public function determine_for_term( $taxonomy ) {
$replacement_variables = $this->get();
if ( array_key_exists( $taxonomy, $replacement_variables ) ) {
return $taxonomy;
}
return 'term-in-custom-taxonomy';
}