tables_to_repair
Filters additional database tables to repair.
Использование
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.
Список изменений
С версии 3.0.0 | Введена. |
Где вызывается хук
В файле: /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() ) );