Private AccessPrivate Access
This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
Retrieve an array of active and valid plugin files.
While upgrading or installing WordPress, no plugins are returned.
The default directory is
wp-content/plugins. To change the default directory manually, define
(string) $plugin_file Array of paths to plugin files relative to the plugins directory.