1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
if( function_exists('acf_add_options_page') ) {
acf_add_options_page(array(
'page_title' => '主题设置',
'menu_title' => '主题设置',
'menu_slug' => 'theme-thopt-settings',
'capability' => 'edit_posts',
'parent_slug' => '',
'redirect' => false,
'icon_url' => false
));
acf_add_options_sub_page(array(
'page_title' => '视频书籍',
'menu_title' => '视频书籍',
'menu_slug' => 'theme-video-settings',
'capability' => 'edit_posts',
'parent_slug' => 'theme-thopt-settings',
'posttion' => false,
'icon_url' => false
));
acf_add_options_sub_page(array(
'page_title' => '推荐项目',
'menu_title' => '推荐项目',
'menu_slug' => 'theme-oge-settings',
'parent_slug' => 'theme-thopt-settings',
'capability' => 'edit_posts',
'posttion' => false,
'icon_url' => false
));
}