referee.php
/**
 * Adds a submenu page under a custom post type parent.
 */
Adds a submenu page under a custom post type parent.
Adds a submenu page under a custom post type parent .
function books_register_ref_page()
{
	add_submenu_page(
		'edit.php?post_type=referee',
		__('Referees Upload page', 'textdomain'),
		__('Referees Upload page', 'textdomain'),
		'edit_posts',
		'referees_upload',
		'books_ref_page_callback'
	);
}
function books_register_ref_page ( ) { add_submenu_page ( 'edit.php?post_type=referee' , __ ( 'Referees Upload page' , 'textdomain' ) , __ ( 'Referees Upload page' , 'textdomain' ) , 'edit_posts' , 'referees_upload' , 'books_ref_page_callback' ) ; }
Adds a submenu page under a custom post type parent.
Adds a submenu page under a custom post type parent .