Страница опции пользовательского меню WordPress с использованием ACF
//Page Options (only work with ACF Pro)
if( function_exists('acf_add_options_page') ) {
acf_add_options_page(array(
'page_title' => 'YOUR OPTION PAGE NAME',
'menu_title' => 'YOUR OPTION PAGE NAME',
'menu_slug' => 'your-option-page-name',
'capability' => 'edit_posts',
'redirect' => false
));
//This is Sub menu if you need you can use
acf_add_options_sub_page(array(
'page_title' => 'YOUR SUB MENU 1 NAME',
'menu_title' => 'YOUR SUB MENU 1 NAME',
'parent_slug' => 'your-option-page-name',
));
acf_add_options_sub_page(array(
'page_title' => 'YOUR SUB MENU 2 NAME',
'menu_title' => 'YOUR SUB MENU 2 NAME',
'parent_slug' => 'your-option-page-name',
));
}
// CHANGE only CAPITALIZE TEXT and "MENU_SLUG" according your desire as sample code
Mono Smith