posts_selection

posts_selection

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.8

do_action('posts_selection') is found 1 times:

  • /wp-includes/class-wp-query.php line 3037
    3033
    3034
    3035
    3036
    3037
    3038
    3039
    3040
    3041
    3042
    3043
    * @since 2.3.0
     *
     * @param string $selection The assembled selection query.
     */
    do_action( 'posts_selection', $where . $groupby . $orderby . $limits . $join );
     
    /*
     * Filters again for the benefit of caching plugins.
     * Regular plugins should use the hooks above.
     */
    if ( ! $q['suppress_filters'] ) {

See this hook used in plugins: