tables_to_repair

tables_to_repair

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

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('tables_to_repair') is found 1 times:

  • /wp-admin/maint/repair.php line 107
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    * @since 3.0.0
     *
     * @param string[] $tables Array of prefixed table names to be repaired.
     */
    $tables = array_merge( $tables, (array) apply_filters( 'tables_to_repair', array() ) );
     
    // Loop over the tables, checking and repairing as needed.
    foreach ( $tables as $table ) {
        $check = $wpdb->get_row( "CHECK TABLE $table" );
     
        echo '<p>';