wp_get_active_and_valid_plugins
- %1$s is private and should not be used in themes or plugins directly.
wp_get_active_and_valid_plugins ( No parameters )
Access:Returns:- (string[]) Array of paths to plugin files relative to the plugins directory.
Defined at: - Introduced in WordPress: 3.0.0
- Deprecated in WordPress: —
Description
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`.