Skip to content

Allow programmatic control of which modules are enabled #33

@felixarntz

Description

@felixarntz

Based on the settings screen from #27 which allows to toggle individual modules on/off via UI, it should alternatively be possible to programmatically control which modules should be enabled. This can be useful for advanced users or environments which would like to use certain modules from the plugin without confronting end users with control over them.

Suggested approach:

  • Introduce a filter perflab_active_modules that filters the return value of the perflab_get_active_modules() function.
  • Skip adding the plugin's settings screen (see perflab_add_modules_page()) if the above filter is being used (check via WP core's has_filter() function).

Metadata

Metadata

Assignees

Labels

InfrastructureIssues for the overall performance plugin infrastructure[Type] EnhancementA suggestion for improvement of an existing feature

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions