WPSEO_Replace_Vars::strip_prefix()privateYoast 1.0

Strip the prefix from a replacement variable name.

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

Хуков нет.

Возвращает

Строку. The replacement variable name without the prefix.

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

// private - только в коде основоного (родительского) класса
$result = $this->strip_prefix( $replacement_variable );
$replacement_variable(строка) (обязательный)
The replacement variable.

Код WPSEO_Replace_Vars::strip_prefix() Yoast 22.4

private function strip_prefix( $replacement_variable ) {
	return substr( $replacement_variable, 3 );
}