Create a custom options(settings) page WordPress code example
Example: Create a custom options(settings) page WordPress
add_action( 'admin_menu', 'misha_options_page' );
function misha_options_page() {
add_options_page(
'My Page Title', // page <title>Title</title>
'My Page', // menu link text
'manage_options', // capability to access the page
'misha-slug', // page URL slug
'misha_page_content', // callback function with content
2 // priority
);
}
function misha_page_content(){
echo 'What is up?';
}