Skip to content

Instantly share code, notes, and snippets.

@schalkjoubert
Created November 17, 2016 08:31
Show Gist options
  • Save schalkjoubert/b1d73657a65403f2c76822f282a4ebfc to your computer and use it in GitHub Desktop.
Save schalkjoubert/b1d73657a65403f2c76822f282a4ebfc to your computer and use it in GitHub Desktop.
<?php
/**
* Plugin Name: Home Page CPT
**/
add_action( 'admin_menu', 'my_admin_menu' );
function my_admin_menu() {
add_menu_page( 'My Top Level Menu Example', 'Top Level Menu', 'manage_options', 'example.php', 'myplguin_admin_page', 'dashicons-tickets', 6 );
}
function myplguin_admin_page(){
echo 'HOW DO I A CUSTOM FIELDS / META BOXES HERE?';
}
@Audiovoyeur
Copy link

Cool

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment