0

Drop-in files, like advanced-cache.php or object-cache.php, sit in the root of the wp-content directory.

Is it possible to give drop-ins in their own subdirectory of wp-content instead?

Looking at _get_dropins() in wp-admin/includes/plugins.php there are no filters to set the path to the drop-in files. Also, looking at wp_plugin_directory_constants() in wp-includes/default-constants.php there are no constants set specific to drop-ins (as of 3.8.1).

2
  • It looks like "not". Why do you need to?
    – s_ha_dum
    Commented Mar 30, 2014 at 14:12
  • Drop-ins, like Memcached Object Cache, are not upgradable in the admin and are tough to keep under version control.
    – Matthew
    Commented Mar 30, 2014 at 22:56

1 Answer 1

2

Is it possible to give drop-ins in their own subdirectory of wp-content instead?

No, it is not possible without editing the core WordPress code.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.