summaryrefslogtreecommitdiffstats
path: root/giglogadmin.php
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2021-03-07 20:00:06 +0100
committerHarald Eilertsen <haraldei@anduin.net>2021-03-07 20:00:06 +0100
commitb5622ca47e975370d22912ae1ee6d76d33447a27 (patch)
treea6561325308aa802a88e4c9b7f53620b506543ff /giglogadmin.php
parentb2784f4bcb9724786dde19b31304f86918f6fb95 (diff)
downloadgigologadmin-b5622ca47e975370d22912ae1ee6d76d33447a27.tar.gz
gigologadmin-b5622ca47e975370d22912ae1ee6d76d33447a27.tar.bz2
gigologadmin-b5622ca47e975370d22912ae1ee6d76d33447a27.zip
Implement upload of gig data files.
Diffstat (limited to 'giglogadmin.php')
-rw-r--r--giglogadmin.php4
1 files changed, 3 insertions, 1 deletions
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' ) );
}
/*