WPSEO_Meta_Columns::column_sort_orderby()publicYoast 1.0

Modify the query based on the filters that are being passed.

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

Хуков нет.


Массив. Array containing the meta query to use for filtering the posts overview.


$WPSEO_Meta_Columns = new WPSEO_Meta_Columns();
$WPSEO_Meta_Columns->column_sort_orderby( $vars );
$vars(массив) (обязательный)
Query variables that need to be modified based on the filters.

Код WPSEO_Meta_Columns::column_sort_orderby() Yoast 19.7.1

public function column_sort_orderby( $vars ) {
	$collected_filters = $this->collect_filters();

	if ( isset( $vars['orderby'] ) ) {
		$vars = array_merge( $vars, $this->filter_order_by( $vars['orderby'] ) );

	return $this->build_filter_query( $vars, $collected_filters );