Created
February 7, 2017 16:46
-
-
Save kirillrocks/048ddc990be905c0ab3132a120251bf9 to your computer and use it in GitHub Desktop.
This file contains 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 characters
<?php | |
add_action( 'admin_menu', 'cjlp_admin_init' ); | |
function cjlp_admin_init() { | |
$admin_page = new CJLP_Router( 'Main Page', 'admin_page.php' ); | |
new CJLP_Router( 'Sub page 1', 'sub_page.php', $admin_page->get_slug() ); | |
new CJLP_Router( 'Sub page 2', 'sub_page.php', $admin_page->get_slug() ); | |
new CJLP_Router( 'Sub page 3', 'sub_page.php', $admin_page->get_slug() ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment