WPSEO_Options::get_default()
Get a specific default value for an option.
Метод класса: WPSEO_Options{}
Хуков нет.
Возвращает
Разное
.
Использование
$result = WPSEO_Options::get_default( $option_name, $key );
- $option_name(строка) (обязательный)
- The option for which you want to retrieve a default.
- $key(строка) (обязательный)
- The key within the option who's default you want.
Код WPSEO_Options::get_default() WPSEO Options::get default Yoast 24.9
public static function get_default( $option_name, $key ) { if ( isset( static::$option_instances[ $option_name ] ) ) { $defaults = static::$option_instances[ $option_name ]->get_defaults(); if ( isset( $defaults[ $key ] ) ) { return $defaults[ $key ]; } } return null; }