# supportcandy/2.3.1/includes/admin/settings/get_add_priority.php

SupportCandy – AI Customer Support Ticket System &amp; Live Chatbot Agent, version 2.3.1. 46 lines.

- Page: https://pluginprobe.com/plugins/supportcandy/2.3.1/code/includes/admin/settings/get_add_priority.php
- Raw: https://pluginprobe.com/plugins/supportcandy/2.3.1/raw/includes/admin/settings/get_add_priority.php
- Modified: 2022-07-21T08:20:56+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/supportcandy/2.3.1/code/includes/admin/settings/get_add_priority.php#L10-L20`.

```php
<?php
if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly
}

global $current_user;
if (!($current_user->ID && $current_user->has_cap('manage_options'))) {exit;}

ob_start();
?>
<div class="form-group">
  <label for="wpsc_priority_name"><?php _e('Priority Name','supportcandy');?></label>
  <p class="help-block"><?php _e('Insert priority name. Please make sure priority name you are entering should not already exist.','supportcandy');?></p>
  <input id="wpsc_priority_name" class="form-control" name="wpsc_priority_name" value="" />
</div>
<div class="form-group">
  <label for="wpsc_priority_color"><?php _e('Color','supportcandy');?></label>
  <p class="help-block"><?php _e('Text color of priority.','supportcandy');?></p>
  <input id="wpsc_priority_color" class="wpsc_color_picker" name="wpsc_priority_color" value="#ffffff" />
</div>
<div class="form-group">
  <label for="wpsc_priority_bg_color"><?php _e('Background Color','supportcandy');?></label>
  <p class="help-block"><?php _e('Background color of priority.','supportcandy');?></p>
  <input id="wpsc_priority_bg_color" class="wpsc_color_picker" name="wpsc_priority_bg_color" value="#1E90FF" />
</div>
<script>
  jQuery(document).ready(function(){
      jQuery('.wpsc_color_picker').wpColorPicker();
  });
</script>
<?php 
$body = ob_get_clean();
ob_start();
?>
<button type="button" class="btn wpsc_popup_close" onclick="wpsc_modal_close();"><?php _e('Close','supportcandy');?></button>
<button type="button" class="btn wpsc_popup_action" onclick="wpsc_set_add_priority();"><?php _e('Submit','supportcandy');?></button>
<?php 
$footer = ob_get_clean();

$output = array(
  'body'   => $body,
  'footer' => $footer
);

wp_send_json($output);

```
