From 433b50da554e526450b7613a7622ce0ae581196f Mon Sep 17 00:00:00 2001 From: Nic Waller Date: Sat, 1 Jun 2013 18:50:43 +0000 Subject: [PATCH] Framework for authmgr admin page --- authmgr/plugin.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/authmgr/plugin.php b/authmgr/plugin.php index e20cc50..b8731a2 100644 --- a/authmgr/plugin.php +++ b/authmgr/plugin.php @@ -124,6 +124,17 @@ function authmgr_html_append_roles( $original ) { } } +/************** PLUGIN ADMIN PAGE *************************/ + +yourls_add_action( 'plugins_loaded', 'authmgr_add_page' ); +function authmgr_add_page() { + yourls_register_plugin_page( 'authmgr', 'Authorization Manager', 'authmgr_display_page' ); +} + +function authmgr_display_page() { + echo "Get option content and render page here!"; +} + /**************** CAPABILITY TEST/ENUMERATION ****************/ /*