Skip to content

Commit

Permalink
Add setting page as submenu to movie CPT
Browse files Browse the repository at this point in the history
  • Loading branch information
williamsba committed Aug 19, 2020
1 parent d308c3d commit 160c1ad
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ps-rest-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@ function ps_register_custom_post_type() {
function ps_create_menu() {

// Create custom top-level menu
add_menu_page( 'Movies Page', 'Movies', 'manage_options', 'ps-movies', 'ps_movie_api_results', 'dashicons-smiley', 99 );

//add_menu_page( 'Movies Page', 'Movies', 'manage_options', 'ps-movies', 'ps_movie_api_results', 'dashicons-smiley', 99 );

add_submenu_page( 'edit.php?post_type=movie', 'Movie Importer Page', 'Import Movies', 'manage_options', 'ps-movies', 'ps_movie_api_results' );

}

// Request and display Movie API data
Expand Down

0 comments on commit 160c1ad

Please sign in to comment.