-
Notifications
You must be signed in to change notification settings - Fork 130
Closed
Labels
InfrastructureIssues for the overall performance plugin infrastructureIssues for the overall performance plugin infrastructure[Type] EnhancementA suggestion for improvement of an existing featureA suggestion for improvement of an existing feature
Description
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 theperflab_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'shas_filter()
function).
lkraav and lukecav
Metadata
Metadata
Assignees
Labels
InfrastructureIssues for the overall performance plugin infrastructureIssues for the overall performance plugin infrastructure[Type] EnhancementA suggestion for improvement of an existing featureA suggestion for improvement of an existing feature