Skip to content

Early-bird lifetime licence: $199 once, for the first 200 buyers only. See the offer

Keep uploads in one folder

New uploads go straight into wp-content/uploads instead of year and month folders.

  • Type PHP
  • Runs Everywhere (runs as WordPress loads)
  • Category Media
  • Tested with WordPress 7.1
PHP
<?php

add_filter( 'pre_option_uploads_use_yearmonth_folders', static fn() => 0 );

Good to know

Files already uploaded stay where they are. Very large libraries are easier to back up with the month folders.

In these packs

  • Images and media: Sharper, lighter images, tidier uploads and a more useful media library.

Move your snippets over this afternoon.

Importing changes nothing until you switch over, and your old shortcodes keep working.