Answers for "Create a custom options(settings) page WordPress"

0

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?';
 
}
Posted by: Guest on May-25-2021

Code answers related to "Create a custom options(settings) page WordPress"

Browse Popular Code Answers by Language