_bbp_akismet_optimize_table

_bbp_akismet_optimize_table

Hook Type: filter

See hook in core

Displaying hooks found in version: bbpress.2.6.9

apply_filters('_bbp_akismet_optimize_table') is found 1 times:

  • /includes/extend/akismet.php line 1263
    		 * Determines whether tables should be optimized.
    		 *
    		 * @param int Random number between 1 and 5000.
    		 */
    		$optimize = (int) apply_filters( '_bbp_akismet_optimize_table', mt_rand( 1, 5000 ), $wpdb->postmeta );
    
    		// Lucky number 11
    		if ( 11 === $optimize ) {
    			$wpdb->query( "OPTIMIZE TABLE {$wpdb->postmeta}" );
    		}
    	}