Display filter for the error log metabox
-
H from Germany,
i am using your plugin in every new WP installation of mine and still find it absolutely indispensable. Of course it works like a charm with the new WP 4.5.1 Besides the l18n feature I asked for about one year ago, I came up with another Idea: Could you probably wrap some sort of a display filter around the dashboard metabox output? I am thinking of a simple true/false condition, that one could use to show/hide the metabox.
Rough example (considering $show is a bool that’s true):
function show_error_log_metabox($show){ $show = current_user_can('manage_options'); return $show; } add_filter('yourfilterhook', 'show_error_log_metabox');
Could come in handy when streamline the WP dashboard for a customer.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Display filter for the error log metabox’ is closed to new replies.