pre_get_table_charset

pre_get_table_charset

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

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('pre_get_table_charset') is found 1 times:

  • /wp-includes/class-wpdb.php line 3212
    3208
    3209
    3210
    3211
    3212
    3213
    3214
    3215
    3216
    3217
    3218
    * @param string|WP_Error|null $charset The character set to use, WP_Error object
     *                                      if it couldn't be found. Default null.
     * @param string               $table   The name of the table being checked.
     */
    $charset = apply_filters( 'pre_get_table_charset', null, $table );
    if ( null !== $charset ) {
        return $charset;
    }
     
    if ( isset( $this->table_charset[ $tablekey ] ) ) {
        return $this->table_charset[ $tablekey ];