Skip to content

Instantly share code, notes, and snippets.

@wichaksono
Created October 5, 2018 04:26
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 wichaksono/417f35f4f76a0388a2423ad834cda699 to your computer and use it in GitHub Desktop.
Save wichaksono/417f35f4f76a0388a2423ad834cda699 to your computer and use it in GitHub Desktop.
<?php
/**
*/
require_once get_theme_file_path('class-list-member.php');
function addMenuMembers()
{
add_menu_page('Memberss', 'Memberss', 'manage_options', 'customer', 'MembersHtml');
}
add_action('admin_menu', 'addMenuMembers', 1);
function MembersHtml()
{
echo "<h2>Member</h2>";
$memberLists = new memberLists();
$memberLists->prepare_items();
$memberLists->views();
$memberLists->display();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment