This filter allows you to enable / disable the ‘Export Location Data’ option shown on the location pages in the admin area.
This option was included to make it easier to deal with possible GDPR data access requests. If the button is enabled, then it will generate a CSV file holding all the location details.
This code will hide the ‘Export Location Option’ from the location pages in the admin area.
This filter is located in /admin/class-metaboxes.php.
The code needs to be placed in the functions.php file inside your active theme folder.