Skip to content

Instantly share code, notes, and snippets.

@ridhamdholakia
Created January 31, 2019 11:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ridhamdholakia/5632d4dd1273d76cb65f79e3389c1735 to your computer and use it in GitHub Desktop.
Save ridhamdholakia/5632d4dd1273d76cb65f79e3389c1735 to your computer and use it in GitHub Desktop.
add_action( 'admin_menu', 'add_subscribed_user_list' );
function add_subscribed_user_list()
{
add_menu_page(
'Subscribed Users',
'Subscribed Users',
'manage_options',
'user-list',
'add_subscribed_users_list',
null,
28
);
}
function add_subscribed_users_list()
{
global $title;
print '<div class="wrap">';
print "<h1>$title</h1>";
$file = get_template_directory(). "/subscribe/subscribed-list.php";
if ( file_exists( $file ) )
require $file;
print '</div>';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment