Add new menu item for Event Registrations
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 18 Nov 2016 14:55:55 +0000 (09:55 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 18 Nov 2016 14:55:55 +0000 (09:55 -0500)
Going to the dev53 copy for Event Registrations.

functions.php

index 694954e..600b687 100644 (file)
     include_once 'lib/plugins.php';
     include_once 'lib/force-template-functions.php';
     include_once 'lib/EventRegistration.php';
-?>
+
+    add_action( 'admin_bar_menu', function( $wp_admin_bar ){
+        $args = array(
+            'id'    => 'eventregistrations',
+            'title' => 'Event Registrations',
+            'href'  => 'http://dev53.gaslightmedia.com/www.harborcountry.org/admin/',
+            'meta'  => array(
+                'class'  => 'eventregistrations',
+                'title'  => 'Event Registrations',
+                'target' => '_blank'
+            )
+        );
+        $wp_admin_bar->add_node( $args );
+    }, 999 );