do_action( 'posts_selection', string $selection )

Fires to announce the query’s current selection parameters.

Description Description

For use by caching plugins.

Top ↑

Parameters Parameters


(string) The assembled selection query.

Top ↑

More Information More Information

This action hook is executed prior to the query and is passed a string containing the assembled query. Note that this string is NOT passed by reference and manipulating this string will not affect the actual query. This is intended to be used primarily by caching plugins.

Top ↑

Source Source

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

View on Trac

Top ↑

Changelog Changelog

Version Description
2.3.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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