WPSEO_Replace_Vars::setup_statics_once
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() WPSEO Replace Vars::setup statics once Yoast 27.6
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' );
}
}