Search
 
SCRIPT & CODE EXAMPLE
 

PHP

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',
	));
	
}
Comment

PREVIOUS NEXT
Code Example
Php :: how to get index 2nd php 
Php :: - root composer.json requires php ^7.2 but your php version (8.0.1) does not satisfy that requirement. 
Php :: hoew to store a cookie php 
Php :: password change logout from wordpress 
Php :: laravel download file from s3 
Php :: laravel with callback 
Php :: strtotime to date php 
Php :: php opendir 
Php :: password_verify() php 
Php :: get key of array element php 
Php :: carbon get day name 
Php :: wordpress single post template 
Php :: install php apache 
Php :: php bcrypt password verify 
Php :: check duplicate data in array php 
Php :: laravel exist 
Php :: How to change site url using wp-config.php 
Php :: symfony no php binaries detected 
Php :: The `php` command cannot be found. Please verify that PHP is installed, or set the `php.executables` setting. 
Php :: load-styles.php 403 
Php :: where condition in array in codeigniter 
Php :: wordpress reserved image size names 
Php :: laravel model with migration 
Php :: file_put_contents error in laravel 
Php :: firebase php 
Php :: set posts_per_page 
Php :: wp order archive page post by title 
Php :: magento 2 get number of cart items 
Php :: php lowercase assoc array 
Php :: php arrow function 
ADD CONTENT
Topic
Content
Source link
Name
1+7 =