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).

  • It looks like "not". Why do you need to? – s_ha_dum Mar 30 '14 at 14:12
  • Drop-ins, like Memcached Object Cache, are not upgradable in the admin and are tough to keep under version control. – Matthew Mar 30 '14 at 22:56
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, privacy policy and cookie policy

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