sumnima sumnima sumnima sumnima sumnima sumnima sumnima
Categories
officialstupid wordpress

WordPress . – file name

From: Screenshot-2025-12-04-at-12.36.02.webp
To: Screenshot-2025-12-04-at-12-36-02.webp

// Add this to your plugin - automatically fixes dots in uploaded filenames
add_filter('wp_handle_upload_prefilter', 'dgc_auto_fix_upload_filename');
function dgc_auto_fix_upload_filename($file) {
    $filename = $file['name'];
    
    // Replace all dots in filename (except the last one for extension)
    $last_dot = strrpos($filename, '.');
    if ($last_dot !== false) {
        $name = substr($filename, 0, $last_dot);
        $ext = substr($filename, $last_dot);
        
        // Replace dots with hyphens in the name part
        $fixed_name = str_replace('.', '-', $name);
        $file['name'] = $fixed_name . $ext;
    }
    
    return $file;
}

// Also fix when uploading via media library
add_filter('wp_handle_sideload_prefilter', 'dgc_auto_fix_upload_filename');
Categories
blog officialstupid threejs toy box

Toy Box

13 feb update

  • Block size: 1x – 8x. The new tool allows to add tiny blocks for precise design.
  • Delete: ‘Build’ button now acts like the ‘Delete’ block when you ‘right-click + space bar’ the mouse.
  • Undo: new button with keyboard support using ‘esc’ button.

Categories
blog officialstupid sumnima

Tiny just discovered Daddy’s favorite song

Categories
blog officialstupid VIDEO

for sumnima

Categories
blog officialstupid Thermal photography

lost in dots.

Categories
officialstupid

schema.org :) new design

Categories
blog officialstupid

Happy sumnima