WPSEO_Options::get_all
Retrieve all the options for the SEO plugin in one go.
Метод класса: WPSEO_Options{}
Хуков нет.
Возвращает
Массив. Array combining the values of all the options.
Использование
$result = WPSEO_Options::get_all( $specific_options );
- $specific_options(array
) - The option groups of the option you want to get.
По умолчанию:[]
Код WPSEO_Options::get_all() WPSEO Options::get all Yoast 27.4
public static function get_all( $specific_options = [] ) {
$option_names = ( empty( $specific_options ) ) ? static::get_option_names() : $specific_options;
static::$option_values = static::get_options( $option_names );
return static::$option_values;
}