WPSEO_Options::get_option_names()public staticYoast 1.0

{} Это метод класса: WPSEO_Options{}

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

Возвращает

Массив. Array of option names.

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

$result = WPSEO_Options::get_option_names();

Код WPSEO_Options::get_option_names() Yoast 19.6.1

public static function get_option_names() {
	$option_names = array_values( static::$option_names );
	if ( $option_names === [] ) {
		foreach ( static::$option_instances as $option_name => $option_object ) {
			if ( $option_object->include_in_all === true ) {
				$option_names[] = $option_name;
			}
		}
	}

	/**
	 * Filter: wpseo_options - Allow developers to change the option name to include.
	 *
	 * @api array The option names to include in get_all and reset().
	 */
	return apply_filters( 'wpseo_options', $option_names );
}