wpseo_change_order_by хук-фильтрYoast 1.0

Adapt the order by part of the query on the posts overview.

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

add_filter( 'wpseo_change_order_by', 'wp_kama_wpseo_change_order_by_filter', 10, 2 );

/**
 * Function for `wpseo_change_order_by` filter-hook.
 * 
 * @param array  $order_by        The current order by.
 * @param string $order_by_column The current order by column.
 *
 * @return array
 */
function wp_kama_wpseo_change_order_by_filter( $order_by, $order_by_column ){

	// filter...
	return $order_by;
}
$order_by(массив)
The current order by.
$order_by_column(строка)
The current order by column.

Где вызывается хук

WPSEO_Meta_Columns::column_sort_orderby()
wpseo_change_order_by
yoast/admin/class-meta-columns.php 477
$order_by = apply_filters( 'wpseo_change_order_by', $order_by, $order_by_column );

Где используется хук в Yoast SEO

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