options = get_option( 'zendesk_admin_options' ); add_action( 'admin_init', array( $this, 'admin_init' ) ); add_action( 'admin_footer', array( $this, 'admin_widget' ) ); add_action( 'admin_menu', array( $this, 'admin_menu' ) ); } /** * Admin Settings */ public function admin_menu() { add_options_page( 'Zendesk Admin Help Widget', 'Zendesk Help', 'manage_options', 'zendesk-admin', array( $this, 'admin_page' )); } public function admin_page() { ?>

Zendesk Admin Help Widget

options['zendesk_enabled'], false ) . '/>Turn on the widget in WP Admin'; } public function zendesk_id_callback() { printf( ' .zendesk.com
Your Zendesk subdomain that you use to login as an agent', isset( $this->options['zendesk_id'] ) ? esc_attr( $this->options['zendesk_id']) : '' ); } public function admin_print_section_info() { echo 'Zendesk
In order to use this plugin, you will need a Zendesk account with the web widget enabled.
You can customize the Zendesk Widget with options like colors, widget placement, etc.

Setup and Customize Zendesk Widget'; } public function admin_scripts() { ?> options['zendesk_enabled'] ) || 1 != $this->options['zendesk_enabled']) exit; $current_user = wp_get_current_user(); ?>