summaryrefslogtreecommitdiffstats
path: root/giglogadmin.php
diff options
context:
space:
mode:
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' ) );
}
/*