WPSEO_Replace_Vars::get_replacement_variables()privateYoast 1.0

Creates a merged associative array of both the basic and advanced help texts.

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

Хуков нет.

Возвращает

Массив. Array with the replacement variables.

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

// private - только в коде основоного (родительского) класса
$result = $this->get_replacement_variables();

Код WPSEO_Replace_Vars::get_replacement_variables() Yoast 22.4

private function get_replacement_variables() {
	$help_texts = array_merge( self::$help_texts['basic'], self::$help_texts['advanced'] );

	return array_filter( array_keys( $help_texts ), [ $this, 'is_not_prefixed' ] );
}