Answers for "advanced custom fields options page"

PHP
2

acf options page

if( function_exists('acf_add_options_page') ) {
	
	acf_add_options_page();
	
}
Posted by: Guest on September-28-2020
0

add options page advanced custom fields

if( function_exists('acf_add_options_page') ) {
	
	acf_add_options_page(array(
		'page_title' 	=> 'Theme General Settings',
		'menu_title'	=> 'Theme Settings',
		'menu_slug' 	=> 'theme-general-settings',
		'capability'	=> 'edit_posts',
		'redirect'		=> false
	));
	
	acf_add_options_sub_page(array(
		'page_title' 	=> 'Theme Header Settings',
		'menu_title'	=> 'Header',
		'parent_slug'	=> 'theme-general-settings',
	));
	
	acf_add_options_sub_page(array(
		'page_title' 	=> 'Theme Footer Settings',
		'menu_title'	=> 'Footer',
		'parent_slug'	=> 'theme-general-settings',
	));
	
}
Posted by: Guest on January-13-2022

Code answers related to "advanced custom fields options page"

Browse Popular Code Answers by Language