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

apply_filters('pre_get_table_charset') is found 1 times:

  • /wp-includes/class-wpdb.php line 3212
    		 * @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 ];