wp_get_active_and_valid_plugins

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.

SummerySummery

Retrieve an array of active and valid plugin files.

Syntax

wp_get_active_and_valid_plugins()

DescriptionDescription

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.

ReturnReturn

(string[]) $plugin_file Array of paths to plugin files relative to the plugins directory.

SourceSource

File: wp-includes/load.php


			

ChangelogChangelog

Changelog
Version Description
3.0.0 Introduced.
Scroll to Top