apply_filters( ‘posts_search_orderby’, string $search_orderby, WP_Query $query )

In this article

Filters the ORDER BY used when ordering search results.

Parameters

$search_orderbystring
The ORDER BY clause.
$queryWP_Query
The current WP_Query instance.

Source

$search_orderby = apply_filters( 'posts_search_orderby', $search_orderby, $this );

Changelog

VersionDescription
3.7.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.