wordpress / latest / hooks / posts_search_orderby.html

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

Filters the ORDER BY used when ordering search results.

Parameters

$search_orderby string
The ORDER BY clause.
$query WP_Query
The current WP_Query instance.

Source

File: wp-includes/class-wp-query.php. View all references

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

Used By

Used By Description

Changelog

Version Description
3.7.0 Introduced.

© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/posts_search_orderby