pre_get_table_charset хук-фильтр . WP 4.2.0
Filters the table charset value before the DB is checked.
Passing a non-null value to the filter will effectively short-circuit checking the DB for the charset, returning that value instead.
Использование
add_filter( 'pre_get_table_charset', 'filter_function_name_6265', 10, 2 ); function filter_function_name_6265( $charset, $table ){ // filter... return $charset; }
- $charset(строка/null)
- The character set to use.
По умолчанию: null - $table(строка)
- The name of the table being checked.
Список изменений
С версии 4.2.0 | Введена. |
Где вызывается хук
pre_get_table_charset
wp-includes/wp-db.php 2760
$charset = apply_filters( 'pre_get_table_charset', null, $table );