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?

2 years, 2 months ago

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’ );

2 years, 2 months 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

2 years, 1 month ago

You must be logged in to reply to this topic.