You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add settings links to Performance features screen #1137
Certain plugins have settings (e.g. Modern Image Formats and Speculative Loading). However, discovery of how to access these plugins' settings is not facilitated on the Performance features screen:
Just as we've added plugin row action links for these plugins (#1131, #1036), we should facilitate discovery on the Performance screen as well.
The settings link can be discovered (as of #1145 and #1146) by manually applying the plugin_action_links_{slug} filter, at least for webp-uploads and speculation-rules. For example:
Reminder: The plugin main file (e.g. speculation-rules/load.php) is not the same as the slug (e.g. speculation-rules).
Related: If we do go with Ajax-activation of plugins in #1139 then the settings link as provided by the standalong plugin may not be known before the plugin is activated. As such, another Ajax request may be needed to fetch the settings links unless we hard-code them in the Performance Lab plugin.
Activity
benoitfouc commentedon Apr 16, 2024
Yes complety agree, i was searching for settings so many times for each plugins...
westonruter commentedon Apr 17, 2024
The settings link can be discovered (as of #1145 and #1146) by manually applying the
plugin_action_links_{slug}filter, at least for webp-uploads and speculation-rules. For example:Reminder: The plugin main file (e.g.
speculation-rules/load.php) is not the same as the slug (e.g.speculation-rules).Related: If we do go with Ajax-activation of plugins in #1139 then the settings link as provided by the standalong plugin may not be known before the plugin is activated. As such, another Ajax request may be needed to fetch the settings links unless we hard-code them in the Performance Lab plugin.
ashwinparthasarathi commentedon May 7, 2024
I would like to work on this.