Home › Forums › Backend Issues (wp-admin) › Cannot create Site Options page › Reply To: Cannot create Site Options page
It could be that on the other server that the function function_exists() does not exist when you code is running. It’s unlikely but possible.
Try adding a test on the server where you’re having the issue
if(function_exists('acf_add_options_page')) {
$option_page = acf_add_options_page(array(
'page_title' => 'Site Options',
'menu_title' => 'Site Options',
'menu_slug' => 'site-options',
'capability' => 'manage_options',
'redirect' => false
));
} else {
// report that function does not exist
die('function acf_add_options_page does not exist');
}
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.