If you have a large number of hotspots (eg. 50) for one image, then you may be unable to save them all if you have a low max_input_vars defined number on your hosting server.
In many servers, the default value for max_input_vars directive is 1000, which means that if your form has more than 1000 inputs, any additional values will be lost.
There are 2 possible solutions with which you can override this problem:
Solution 1: Increase your max_input_vars directive
Contact your hosting provider and ask them to increase your max_input_vars directive. If your servers allows it, you can do so yourself. For more info, check this article.
Solution 2: Use filters and remove customization options that you may not need
If you see that all your hotspots have the same icon, then you can remove the ability to customize each hotspot icon, since you don’t need it. This way, the custom fields that you will have to save, will be reduced dramatically.
To do so, just add this piece of code in your functions.php:
add_filter('wpcmtt_hotspot_type_force_default', 'hotspot_type_force_default', 10);
function hotspot_type_force_default($force_default) {
return true;
}
Futhermore, if you see that all your hotspots are text only, you can remove the abitily to customize each hotspot type.
To do so, just add this piece of code in your functions.php:
add_filter('wpcmtt_hotspot_supported_tooltip_types', 'hotspot_supported_tooltip_types', 10);
function hotspot_supported_tooltip_types($supported_tooltip_types) {
return array('text');
}
The supported args for the array above are ‘text’, ‘image’, ‘text_image’, ‘modal’, ‘video’, ‘map’ and ‘html’.
Warning
If you use the solution 2, create a lot of hotspots, and then later, remove the filters, go back to your hotspot, and press save, you may lose the extra hotspots that were added with this method, due to low max_input_vars.