tables_to_repair
Filters additional database tables to repair.
Usage
add_filter( 'tables_to_repair', 'wp_kama_tables_to_repair_filter' ); /** * Function for `tables_to_repair` filter-hook. * * @param string[] $tables Array of prefixed table names to be repaired. * * @return string[] */ function wp_kama_tables_to_repair_filter( $tables ){ // filter... return $tables; }
- $tables(string[])
- Array of prefixed table names to be repaired.
Changelog
Since 3.0.0 | Introduced. |
Where the hook is called
In file: /wp-admin/maint/repair.php
tables_to_repair
wp-admin/maint/repair.php 107
$tables = array_merge( $tables, (array) apply_filters( 'tables_to_repair', array() ) );