w3tc_dbcluster_query

w3tc_dbcluster_query

Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: w3-total-cache.2.10.0

apply_filters('w3tc_dbcluster_query') is found 2 times:

  • /Enterprise_Dbcache_WpdbInjection_Cluster.php line 690
    	 */
    	public function query( $query ) {
    		// some queries are made before the plugins have been loaded, and thus cannot be filtered with this method.
    		if ( function_exists( 'apply_filters' ) ) {
    			$query = apply_filters( 'w3tc_dbcluster_query', $query );
    		}
    
    		$this->flush();
    
    		// Log how the function was called.
    		$this->wpdb_mixin->func_call = "\$db->query(\"$query\")";
    
  • /lib/Db/mssql.php line 1062
                            return false;
    
                    // some queries are made before the plugins have been loaded, and thus cannot be filtered with this method
                    if ( function_exists( 'apply_filters' ) )
                            $query = apply_filters( 'w3tc_dbcluster_query', $query );
    
                    $return_val = 0;
                    $this->flush();
    
                    // Log how the function was called
                    $this->func_call = "\$db->query(\"$query\")";
    

See this hook used in plugins: