options = get_option( 'agency_connect_options' ); ?>

My Settings

', isset( $this->options['email'] ) ? esc_attr( $this->options['email']) : ''); } public function phone_callback() { printf( '', isset( $this->options['phone'] ) ? esc_attr( $this->options['phone']) : ''); } public function agency_callback() { printf( '', isset( $this->options['agency_name'] ) ? esc_attr( $this->options['agency_name']) : ''); } public function widget_title_callback() { printf( '', isset( $this->options['widget_title'] ) ? esc_attr( $this->options['widget_title']) : ''); } public function widget_helptext_callback() { printf( '', isset( $this->options['widget_helptext'] ) ? esc_attr( $this->options['widget_helptext']) : ''); } public function helprequest_callback() { printf( '', isset( $this->options['helprequest_helptext'] ) ? esc_attr( $this->options['helprequest_helptext']) : ''); } /** * Sanitize each setting field as needed * * @param array $input Contains all settings fields as array keys */ public function sanitize( $input ) { $new_input = array(); if( isset( $input['id_number'] ) ) $new_input['id_number'] = absint( $input['id_number'] ); if( isset( $input['title'] ) ) $new_input['title'] = sanitize_text_field( $input['title'] ); return $new_input; } } if(is_admin())//current_user_can('edit_plugins')) $my_settings_page = new MySettingsPage();