How does WordPress know where the plugins are located?
It’s false that a plugin file is not required to be in the standard plugin folder. This plugin folder is defined by the constant WP_PLUGIN_DIR, whose value is WP_CONTENT_DIR . ‘/plugins’. And if you open /wp-includes/load.php, you will find that function wp_get_active_and_valid_plugins(), defined by function wp_get_active_and_valid_plugins() { $plugins = array(); $active_plugins = (array) get_option( ‘active_plugins’, … Read more