WPSEO_Replace_Vars::setup_statics_once()public staticYoast 1.0

Setup the help texts and external replacements as statics so they will be available to all instances.

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

Хуки из метода

Возвращает

null. Ничего (null).

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

$result = WPSEO_Replace_Vars::setup_statics_once();

Код WPSEO_Replace_Vars::setup_statics_once() Yoast 22.4

public static function setup_statics_once() {
	if ( self::$help_texts === [] ) {
		self::set_basic_help_texts();
		self::set_advanced_help_texts();
	}

	if ( self::$external_replacements === [] ) {
		/**
		 * Action: 'wpseo_register_extra_replacements' - Allows for registration of additional
		 * variables to replace.
		 */
		do_action( 'wpseo_register_extra_replacements' );
	}
}