From b5622ca47e975370d22912ae1ee6d76d33447a27 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Sun, 7 Mar 2021 20:00:06 +0100 Subject: Implement upload of gig data files. --- giglogadmin.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'giglogadmin.php') diff --git a/giglogadmin.php b/giglogadmin.php index 0ebaa99..c9defd4 100644 --- a/giglogadmin.php +++ b/giglogadmin.php @@ -61,13 +61,15 @@ if ( !class_exists( 'GiglogAdmin_Plugin' ) ) { 'dashicons-tickets-alt', // Icon url 11); // Position, just below 'Media' - add_submenu_page( + $import_hook = add_submenu_page( "giglog", // parent slug "Import gigs", // page title "Import gigs", // menu title "upload_files", // required capability "giglog_import", // menu slug array( 'GiglogAdmin_ImportGigsPage', 'render_html' )); // callable + + add_action( 'load-' . $import_hook, array( 'GiglogAdmin_ImportGigsPage', 'submit_form' ) ); } /* -- cgit v1.2.3