I’ve set the function acf_add_options_page();
in my functions.php to enable the Options Page. When I’m updating ACF the plugin gets de-activated (natural behavior) but right after that I’m getting an error because the function I’ve set. I have to unset the function, activate ACF5 manually and set the function again. Any suggestions for a better workaround?
This is my complete function for the Options Page:
acf_add_options_page();
if(function_exists("register_options_page")) {
register_options_page('Various');
register_options_page('Header');
register_options_page('Footer');
}
This works better, no more update-struggles:
if(function_exists("acf_add_options_page")) {
acf_add_options_page();
}
if(function_exists("register_options_page")) {
register_options_page('Various');
register_options_page('Header');
register_options_page('Footer');
}