Because of the possibility of plugin loading order error, it is best to use the init hook to search for acf existence and adding the options page. i.e:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
add_action('init', 'add_acf_options_page'); function add_acf_options_page() { if (function_exists('acf_add_options_page')) { acf_add_options_page(array( 'page_title' => 'Site Settings', 'menu_title' => 'Site Settings', 'menu_slug' => 'site-settings', 'capability' => 'edit_posts', 'redirect' => false, 'position' => '6' )); } } |