Wording & Filter Priority
-
Thanks for a great plugin to give admins more options!
I have 2 somewhat “issues” after testing:
1) Wording:
I would suggest to make it more clear that this is for the Debug Info screen and would effect display of items on that screen and also when copied to clipboard. Just to make it crystal clear in description and everywhere.Reason: there are already other “Site Health Manager” plugins available which focus on the “Status” tab and can disable various tests & checks.
2) Filter Priority:
You need to increase the filter priority a lot to catch third-party plugins which add their own info to the Debug Info screen. Any plugin that uses default priority of 10 or higher (especially when higher than 10!) is not catched, means: it still displays and gets copied even if items were deactivated in your manager plugin. Using different filter priorities is the only way currently for plugin devs to control the order of additional items on this screen. I currently do that in my plugins.Therefore I suggest something like that for your plugin:
add_filter( 'debug_information', [ $this, 'disable_info' ], 1000 );
Or even higher than “1000” to always be the last to hook in…!
–Thanks, Dave ??
- The topic ‘Wording & Filter Priority’ is closed to new replies.