Agency Toolkit Activated

Agency Toolkit plugin has been activated. You may visit your options page here.

'Version' ), false ); $plugin_version = $plugin_data['Version']; define( 'INSPRY_TOOLKIT_CURRENT_VERSION', $plugin_version ); $toolkit_all_options = array_merge( $toolkit_options, $toolkit_security_options, $toolkit_performance_options, $toolkit_email_notification_options ); // Loop through options and enable what is enabled foreach ( $toolkit_all_options as $option ) { // Check if the option is enabled if ( get_option( 'inspry_toolkit_' . $option['name'] ) == 1 ) { // Exclude limit admins file since there is none if ( $option['name'] != 'limit_admins' ) { // Include the file that option is located in include plugin_dir_path( __FILE__ ) . 'functions/' . $option['name'] . '.php'; } // Set Default Host In Manage Environment Indicator if ( $option['name'] == 'manage_environment_indicator' ) { $dei_host_name = get_option( 'inspry_toolkit_development_environment_host_name' ); if ( $dei_host_name ) { $default_host = $dei_host_name; } // DISPLAY ENVIRONMENT ON ADMIN BAR ITEMS add_action( 'admin_bar_menu', 'inspry_toolkit_display_production_environment_on_admin_bar', 9999 ); if ( ! function_exists( 'inspry_toolkit_display_production_environment_on_admin_bar' ) ) { function inspry_toolkit_display_production_environment_on_admin_bar( WP_Admin_Bar $admin_bar ) { $agency_toolkit_access = get_option( 'inspry_toolkit_development_environment_user_list' ); if ( ! current_user_can( 'manage_options' ) ) { return; } 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' => array( '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() { ?>