posts_search_orderby

posts_search_orderby

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('posts_search_orderby') is found 1 times:

  • /wp-includes/class-wp-query.php line 2501
    				 *
    				 * @param string   $search_orderby The ORDER BY clause.
    				 * @param WP_Query $query          The current WP_Query instance.
    				 */
    				$search_orderby = apply_filters( 'posts_search_orderby', $search_orderby, $this );
    			}
    
    			if ( $search_orderby ) {
    				$orderby = $orderby ? $search_orderby . ', ' . $orderby : $search_orderby;
    			}
    		}