sites_clauses WordPress Filter Hook
The sites_clauses filter hook is used to filter the SQL clauses used to retrieve the list of sites from the WordPress database.
apply_filters_ref_array( 'sites_clauses', string[] $clauses , WP_Site_Query $query ) #
Filters the site query clauses.
Parameters
- $clauses
(string[])An associative array of site query clauses.
- $query
(WP_Site_Query)Current instance of WP_Site_Query (passed by reference).
Source
Changelog
Version | Description |
---|---|
4.6.0 | Introduced. |