found_sites_query

found_sites_query

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('found_sites_query') is found 1 times:

  • /wp-includes/class-wp-site-query.php line 745
    741
    742
    743
    744
    745
    746
    747
    748
    749
    750
    751
             *
             * @param string        $found_sites_query SQL query. Default 'SELECT FOUND_ROWS()'.
             * @param WP_Site_Query $site_query        The `WP_Site_Query` instance.
             */
            $found_sites_query = apply_filters( 'found_sites_query', 'SELECT FOUND_ROWS()', $this );
     
            $this->found_sites = (int) $wpdb->get_var( $found_sites_query );
        }
    }
     
    /**