/*
custom theme options menu on the admin dashboard
call get_option function for fetch the value.
For Example: for receiving a value of facebook url
get_option("facebook_url");
*/
add_action('admin_menu', 'my_theme_options');

function my_theme_options(){

		add_menu_page(
			"Theme options",
			"Theme options",
			"manage_options",
			"theme-options",
			"my_theme_option_functions",
			"dashicons-category"
		);
}

function my_theme_option_functions(){ ?>

	

Theme Options Panel


About the Author

Anuj Sharma
Anuj Sharma is the Founder of AnujStudyPoint. He has been working in Software Development industry since 2015.

Leave a Reply

Your email address will not be published. Required fields are marked *