Agency Toolkit Activated
Agency Toolkit plugin has been activated. You may visit your options page here.
"; print_r($agency_toolkit_access); exit;
if (in_array(get_current_user_id(), $agency_toolkit_access)) {
$admin_bar->add_menu(array(
'id' => 'production-environment-indicator',
'parent' => null,
'group' => null,
'title' => 'Production', //you can use img tag with image link. it will show the image icon Instead of the title.
'href' => admin_url('admin.php?page=inspry-agency-toolkit'),
'meta' => [
'title' => __('Production', 'inspry-toolkit'), //This title will show on hover
]
));
}
}
}
// Environment Indicator CSS (Backend/Frontend)
add_action('admin_head', 'inspry_toolkit_environment_indicator_custom_css');
add_action('wp_head', 'inspry_toolkit_environment_indicator_custom_css');
if (!function_exists('inspry_toolkit_environment_indicator_custom_css')) {
function inspry_toolkit_environment_indicator_custom_css()
{ ?>