posts_selection
Fires to announce the query's current selection parameters.
For use by caching plugins.
Использование
add_action( 'posts_selection', 'wp_kama_posts_selection_action' );
/**
* Function for `posts_selection` action-hook.
*
* @param string $selection The assembled selection query.
*
* @return void
*/
function wp_kama_posts_selection_action( $selection ){
// action...
}
- $selection(строка)
- The assembled selection query.
Список изменений
| С версии 2.3.0 | Введена. |
Где вызывается хук
posts_selection
wp-includes/class-wp-query.php 3036
do_action( 'posts_selection', $where . $groupby . $orderby . $limits . $join );