diff options
author | AndreaChirulescu <andrea.chirulescu@gmail.com> | 2021-03-10 19:13:59 +0100 |
---|---|---|
committer | AndreaChirulescu <andrea.chirulescu@gmail.com> | 2021-03-10 19:13:59 +0100 |
commit | 06af2ce37c3e6f2111d3be8ae91da94873609ec6 (patch) | |
tree | 39d13b0bd50638e31812e0f1496d50fa8ae58f9a /giglogadmin.php | |
parent | aacaeacf9625cc3f0e281fb9e64a029a906cbc91 (diff) | |
download | gigologadmin-06af2ce37c3e6f2111d3be8ae91da94873609ec6.tar.gz gigologadmin-06af2ce37c3e6f2111d3be8ae91da94873609ec6.tar.bz2 gigologadmin-06af2ce37c3e6f2111d3be8ae91da94873609ec6.zip |
added help file for reviewers
Diffstat (limited to 'giglogadmin.php')
-rw-r--r-- | giglogadmin.php | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/giglogadmin.php b/giglogadmin.php index c9defd4..b711baa 100644 --- a/giglogadmin.php +++ b/giglogadmin.php @@ -19,6 +19,49 @@ +/*Andrea's attempt at creating help files. Didn't get it to work inside giglogadmin class so it's all defined before that section */ + require_once __DIR__ . '/includes/admin/helpfiles/instrunctions.php'; + require_once __DIR__ . '/includes/admin/helpfiles/instr_reviewers.php'; + add_action( 'admin_menu', 'add_help_pages'); + + function add_help_pages() { + + add_menu_page( + + "Help for ET users", // Page title + + "Help for ET users", // Menu title + + "upload_files", // Will show for users with this capability + + "helpfiles", // menu slug + + array( 'Instructions_Page', 'render_instr_html' ), // callable + + 'dashicons-tickets-alt', // Icon url + + 10); // Position, just below 'Media' + + + add_submenu_page( + + "helpfiles", // parent slug + + "Reviewer help files", // page title + + "Reviewer help files", // menu title + + "upload_files", // required capability + + "reviewer_help", // menu slug + + array( 'Instructions_Reviewers', 'render_instr_rev_html' )); // callable + + + } + + + if ( !class_exists( 'GiglogAdmin_Plugin' ) ) { require_once __DIR__ . '/includes/public/shortcodes/giglog_bands.php'; require_once __DIR__ . '/includes/public/shortcodes/giglog_display_unprocessed.php'; |