Support

Account

Home Forums ACF PRO How do I hide the options page? Reply To: How do I hide the options page?

  • sweet! is there anything wrong with doing it this way?

    if (current_user_can('administrator')) {
    		if(function_exists('acf_add_options_page')) { 
    			acf_add_options_page();
    			acf_add_options_sub_page('Global');
    			acf_add_options_sub_page('Home');
    			acf_add_options_sub_page('Ads');
    			acf_add_options_sub_page('Social Media Widget');
    			acf_add_options_sub_page('Calendar Options');
    		}
    	}