Для создания страницы настроек используем Carbon fields
<?php
use Carbon_Fields\Container;
use Carbon_Fields\Field;
/**
* Включение Carbon Fields
*/
function crb_load() {
\Carbon_Fields\Carbon_Fields::boot();
}
add_action( 'after_setup_theme', 'crb_load' );
/**
* Задаём поля
*/
function crb_attach_theme_options() {
Container::make( 'theme_options', 'Найстройки сайта' )
->add_fields(
array(
Field::make( 'text', 'author_name', 'Имя автора' )
)
);
}
add_action( 'carbon_fields_register_fields', 'crb_attach_theme_options' );