From 517f7cfe20e0c73a3a08f9821b0112db35495cab Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Fri, 18 Nov 2016 10:02:26 -0500 Subject: [PATCH] Add menu to admin side. This menu will be on the top tabs. going to their dev53 copy of admin. --- lib/EventRegistration.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lib/EventRegistration.php b/lib/EventRegistration.php index e2e68d5..4e0c972 100644 --- a/lib/EventRegistration.php +++ b/lib/EventRegistration.php @@ -17,3 +17,16 @@ add_action( 'init', function(){ session_start(); } }); +add_action( 'admin_bar_menu', function( $wp_admin_bar ){ + $args = array( + 'id' => 'eventregistrations', + 'title' => 'Event Registrations', + 'href' => 'http://dev53.gaslightmedia.com/www.ucgaylord.org/admin/', + 'meta' => array( + 'class' => 'eventregistrations', + 'title' => 'Event Registrations', + 'target' => '_blank' + ) + ); + $wp_admin_bar->add_node( $args ); +}, 999 ); -- 2.17.1