Overwrite Uploads
[resolved] Move half of the install to wp-config (3 posts)

  1. Jupitercow
    Posted 3 years ago #

    I think you should move this line:

    define('OVUP_FILTER_ADDED', true); // custom modification for Overwrite Uploads plugin

    to wp-config.php.

    This would simplify your install process and would make it so only one line needs to be maintained through upgrades. Is there any reason not to? I just did it and it seems to be working.


  2. Ian Dunn
    Plugin Author

    Posted 3 years ago #

    Hi jcow, the purpose to that line is to provide a detection mechanism to make sure the new filter exists. When the plugin loads, it checks if that constant exists. If it doesn't, it alerts the user that it's missing.

    When WP is upgraded, it will overwrite that constant and the filter, so then the plugin will alert the user that it's missing.

    If it were in wp-config.php, it wouldn't get overwritten during upgrades, even though the new filter would be. So, the user wouldn't be reminded that they need to re-apply the filter after upgrading.

  3. Jupitercow
    Posted 3 years ago #

    Gotcha. that makes sense. I will move it back so I get the detection back. Thanks!

    I really hope someday this filter gets added permanently, but your plugin is a huge help.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Overwrite Uploads
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.