wp_get_active_and_valid_plugins()
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 WP_PLUGIN_DIR and WP_PLUGIN_URL in wp-config.php.
Uses: validate_file(), get_option()
No Hooks.
Return
String[]
. Array of paths to plugin files relative to the plugins directory.
Usage
wp_get_active_and_valid_plugins();
Changelog
Since 3.0.0 | Introduced. |