WP_Plugin_Dependencies
class WP_Plugin_Dependencies
// Constructor: function Object() { [native code] } Core class for installing plugin dependencies.
Methods 25 methods
| Method / Return | Description |
|---|---|
| initialize() void | Initializes by fetching plugin header and plugin API data. |
| has_dependents() bool | Determines whether the plugin has plugins that depend on it.
Parameters: $plugin_file: mixed |
| has_dependencies() bool | Determines whether the plugin has plugin dependencies.
Parameters: $plugin_file: mixed |
| has_active_dependents() bool | Determines whether the plugin has active dependents.
Parameters: $plugin_file: mixed |
| get_dependents() array | Gets filepaths of plugins that require the dependency.
Parameters: $slug: mixed |
| get_dependencies() array | Gets the slugs of plugins that the dependent requires.
Parameters: $plugin_file: mixed |
| get_dependent_filepath() (string | Gets a dependent plugin's filepath.
Parameters: $slug: mixed |
| has_unmet_dependencies() bool | Determines whether the plugin has unmet dependencies.
Parameters: $plugin_file: mixed |
| has_circular_dependency() bool | Determines whether the plugin has a circular dependency.
Parameters: $plugin_file: mixed |
| get_dependent_names() array | Gets the names of plugins that require the plugin.
Parameters: $plugin_file: mixed |
| get_dependency_names() array | Gets the names of plugins required by the plugin.
Parameters: $plugin_file: mixed |
| get_dependency_filepath() (string | Gets the filepath for a dependency, relative to the plugin's directory.
Parameters: $slug: mixed |
| get_dependency_data() (array | Returns API data for the dependency.
Parameters: $slug: mixed |
| display_admin_notice_for_unmet_dependencies() void | Displays an admin notice if dependencies are not installed. |
| display_admin_notice_for_circular_dependencies() void | Displays an admin notice if circular dependencies are installed. |
| check_plugin_dependencies_during_ajax() void | Checks plugin dependencies after a plugin is installed via AJAX. |
| get_plugins() array | Gets data for installed plugins. |
| read_dependencies_from_plugin_headers() void | Reads and stores dependency slugs from a plugin's 'Requires Plugins' header. |
| sanitize_dependency_slugs() array | Sanitizes slugs.
Parameters: $slugs: mixed |
| get_dependency_filepaths() array | Gets the filepath of installed dependencies. |
| get_dependency_api_data() (array | Retrieves and stores dependency plugin data from the WordPress.org Plugin API. |
| get_plugin_dirnames() array | Gets plugin directory names. |
| get_circular_dependencies() array[] | Gets circular dependency data. |
| check_for_circular_dependencies() array | Checks for circular dependencies.
Parameters: $dependents: mixed, $dependencies: mixed |
| convert_to_slug() string | Converts a plugin filepath to a slug.
Parameters: $plugin_file: mixed |
Properties
| Property / Type | Description |
|---|---|
| $plugins mixed public | No description available. |
| $plugin_dirnames mixed public | No description available. |
| $dependencies mixed public | No description available. |
| $dependency_slugs mixed public | No description available. |
| $dependent_slugs mixed public | No description available. |
| $dependency_api_data mixed public | No description available. |
| $dependency_filepaths mixed public | No description available. |
| $circular_dependencies_pairs mixed public | No description available. |
| $circular_dependencies_slugs mixed public | No description available. |
| $initialized mixed public | No description available. |