acf create option page

Solutions on MaxInterview for acf create option page by the best coders in the world

showing results for - "acf create option page"
Francesca
10 Jun 2016
1if( function_exists('acf_add_options_page') ) {
2	acf_add_options_page(array(
3		'page_title' 	=> 'Theme General Settings',
4		'menu_title'	=> 'Theme Settings',
5		'menu_slug' 	=> 'theme-general-settings',
6		'capability'	=> 'edit_posts',
7		'redirect'		=> false
8	));
9	acf_add_options_sub_page(array(
10		'page_title' 	=> 'Theme Header Settings',
11		'menu_title'	=> 'Header',
12		'parent_slug'	=> 'theme-general-settings',
13	));
14}