WPSEO_Option_Titles::get_separator_options()publicYoast 1.0

Get the available separator options.

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

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

Возвращает

Строку[].

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

$WPSEO_Option_Titles = new WPSEO_Option_Titles();
$WPSEO_Option_Titles->get_separator_options();

Код WPSEO_Option_Titles::get_separator_options() Yoast 22.3

public function get_separator_options() {
	$separators = wp_list_pluck( self::get_separator_option_list(), 'option' );

	/**
	 * Allow altering the array with separator options.
	 *
	 * @param array $separator_options Array with the separator options.
	 */
	$filtered_separators = apply_filters( 'wpseo_separator_options', $separators );

	if ( is_array( $filtered_separators ) && $filtered_separators !== [] ) {
		$separators = array_merge( $separators, $filtered_separators );
	}

	return $separators;
}