WordPress at Your Fingertips
filter is not described

posts_orderby filter-hook . WP 1.5.1

Filters the ORDER BY clause of the query.


add_filter( 'posts_orderby', 'filter_function_name_2318', 10, 2 );
function filter_function_name_2318( $orderby, $query ){
	// filter...

	return $orderby;
The ORDER BY clause of the query.
The WP_Query instance (passed by reference).

Where the hook is called

wp-includes/class-wp-query.php 2736
$orderby = apply_filters_ref_array( 'posts_orderby', array( $orderby, &$this ) );

Where in WP core the hook is used WordPress

Usage not found.