wpmdb_abort_utf8mb4_to_utf8

wpmdb_abort_utf8mb4_to_utf8

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

See hook in core

Displaying hooks found in version: wp-migrate-db.2.6.9

apply_filters('wpmdb_abort_utf8mb4_to_utf8') is found 1 times:

  • /class/Common/Sql/TableHelper.php line 126
                if ('savefile' !== $action && 'backup' !== $stage) {
                    $abort_utf8mb4 = true;
                }
                // Escape hatch if user knows that site content is utf8 safe.
                $abort_utf8mb4 = apply_filters('wpmdb_abort_utf8mb4_to_utf8', $abort_utf8mb4);
    
                $replace_count = 0;
                $create_table  = preg_replace('/(COLLATE\s)utf8mb4/', '$1utf8', $create_table, -1, $replace_count); // Column collation
    
                if (false === $abort_utf8mb4 || 0 === $replace_count) {
                    $create_table = preg_replace('/(COLLATE=)utf8mb4/', '$1utf8', $create_table, -1, $replace_count); // Table collation