add plugin admin menu

add_action( ‘admin_menu’, ‘register_my_custom_menu_page’ );

function register_my_custom_menu_page(){

add_menu_page( ‘PDF Selector’, ‘PDF Selector’, ‘manage_options’, ‘PDFSelector’, ‘my_custom_menu_page’, “”, 6 );

}

function my_custom_menu_page(){

?>

<div clas=”wrap”>

<h1>PDF Selector</h1>

<form action=”” method=”post”>

<label>Client</label><input name=”name”/>

 

</form>

</div>

<?php } ?>

Leave a Comment