Search results for ""

Sorry, no results found. Perhaps you would like to search the documentation?
All Topics

Disable "Export to CSV"

It would be nice to have an option to disable the Export to CSV function. Is there a hook for that or do I have to use good old CSS display:none to do that?

5 years ago
Stefan van den Dungen Gronovius

There are multiple ways to disable export.

1) It can be disabled on user level by disabling the button through the Screen options menu. This is a per-user solution.

2) Disable Export by the hook acp/export/is_active. This hook has a list screen param, so it’s even possible to disable export for specific overviews. To disable export for all users for all overview, you can use the following snippet.

add_filter(‘acp/export/is_active’, ‘__return_false’ );

5 years ago

Thank you Stefan works perfecly.

Here is a link to another topic where is some help for how to use this How to use a tweak

4 years, 11 months ago

You must be logged in to reply to this topic.