posts_groupby_request WordPress Filter Hook

If you're looking for a way to group your WordPress posts by request, then you've come to the right place. The posts_groupby_request hook allows you to do just that. With this hook, you can group your posts by any number of criteria, including author, post type, and even post status. This is a great way to organize your content and make it easy to find what you're looking for. So if you're looking for a way to group your WordPress posts, then be sure to check out the posts_groupby_request hook.

apply_filters_ref_array( 'posts_groupby_request', string $groupby, WP_Query $query ) #

Filters the GROUP BY clause of the query.


Description

For use by caching plugins.


Top ↑

Parameters

$groupby

(string)The GROUP BY clause of the query.

$query

(WP_Query)The WP_Query instance (passed by reference).


Top ↑

Source

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

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More