wp_get_active_and_valid_plugins


wp_get_active_and_valid_plugins ( No parameters )

Access:
  • private
Returns:
  • (string[]) $plugin_file Array of paths to plugin files relative to the plugins directory.
Defined at:

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.

Related Functions

wp_get_active_network_plugins, wp_get_mu_plugins, deactivate_plugins, wp_get_cookie_login, deactivate_sitewide_plugin

Top Google Results

User discussions

wpseek mobile