H
HGrantDesigns
Guest
Hi,
I added a custom admin area on my WordPress area that says " Contact Support" , I want when users click it , it will be either a popover or a drop down and it shows an form which will get emailed to my support email. What do I need to do make this work? This will be configured via a php plugin. Below is what I have so far
<?php
/*
Plugin Name: Admin Bar
Plugin URI: Home - H Grant Designs
Description: Modifies the WordPress admin bar
Version: 1.0
Author: H Grant Designs
Author URI: Home - H Grant Designs
License: H Grant Designs
*/
// update toolbar
function update_adminbar($wp_adminbar) {
// add SitePoint menu item
$wp_adminbar->add_node([
'id' => 'hgrantdesigns',
'title' => '<span class="ab-icon dashicons dashicons-carrot"></span>' . _( 'Contact Support' ),
'href' => 'Contact - H Grant Designs',
'meta' => [
'target' => 'sitepoint'
]
]);
}
// admin_bar_menu hook
add_action('admin_bar_menu', 'update_adminbar', 999);
Continue reading...
I added a custom admin area on my WordPress area that says " Contact Support" , I want when users click it , it will be either a popover or a drop down and it shows an form which will get emailed to my support email. What do I need to do make this work? This will be configured via a php plugin. Below is what I have so far
<?php
/*
Plugin Name: Admin Bar
Plugin URI: Home - H Grant Designs
Description: Modifies the WordPress admin bar
Version: 1.0
Author: H Grant Designs
Author URI: Home - H Grant Designs
License: H Grant Designs
*/
// update toolbar
function update_adminbar($wp_adminbar) {
// add SitePoint menu item
$wp_adminbar->add_node([
'id' => 'hgrantdesigns',
'title' => '<span class="ab-icon dashicons dashicons-carrot"></span>' . _( 'Contact Support' ),
'href' => 'Contact - H Grant Designs',
'meta' => [
'target' => 'sitepoint'
]
]);
}
// admin_bar_menu hook
add_action('admin_bar_menu', 'update_adminbar', 999);
Continue reading...