apply_filters( 'posts_search_orderby', string $search_orderby, WP_Query $query )

Filters the ORDER BY used when ordering search results.


Parameters

$search_orderby

The ORDER BY clause.

$query

The current WP_Query instance.


Source

File: wp-includes/class-wp-query.php

View on GitHub



Changelog

Changelog
Version Description
3.7.0 Introduced.