Created
January 22, 2020 17:06
-
-
Save Njengah/0764f2c88742c19b67a212c914c9f25f to your computer and use it in GitHub Desktop.
Revisions
-
Njengah created this gist
Jan 22, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,28 @@ <?php // Hook add_action('admin_menu', 'add_tutorial_cpt_submenu_example'); //Callback function function add_tutorial_cpt_submenu_example(){ add_submenu_page( 'edit.php?post_type=tutorial', //$parent_slug 'Tutorial Subpage Example', //$page_title 'Tutorial Settings', //$menu_title 'manage_options', //$capability 'tutorial_subpage_example',//$menu_slug 'tutorial_subpage_example_render_page'//$function ); } //callback function function tutorial_subpage_example_render_page() { echo '<h2> Tutorial Subpage Example </h2>'; }