| 1 |
<?php |
| 2 |
if ( ! defined( 'ABSPATH' ) ) { |
| 3 |
exit; // Exit if accessed directly |
| 4 |
} |
| 5 |
|
| 6 |
global $current_user,$wpdb,$wppmfunction; |
| 7 |
|
| 8 |
if (!($current_user->ID && $current_user->has_cap('manage_options') || ($current_user->ID && $current_user->has_cap('wppm_admin')))) { |
| 9 |
exit; |
| 10 |
} |
| 11 |
if ( check_ajax_referer( 'wppm_reset_ap_individual_proj', '_ajax_nonce', false ) != 1 ) { |
| 12 |
wp_send_json_error( 'Unauthorised request!', 401 ); |
| 13 |
} |
| 14 |
update_option( |
| 15 |
'wppm-ap-individual-project', |
| 16 |
array( |
| 17 |
'menu-button-bg-color' =>'#0052CC', |
| 18 |
'menu-button-hover-color' =>'#0065ff', |
| 19 |
'menu-button-text-color' =>'#fff', |
| 20 |
'comment-primary-color' => '#000000', |
| 21 |
'comment-secondary-color' => '#4e4e4e', |
| 22 |
'comment-date-color' => '#a8aeb5', |
| 23 |
'comment-date-hover-color' => '#000000', |
| 24 |
'comment-send-btn-bg-color' => '#5067c5', |
| 25 |
'comment-send-btn-color' => '#ffffff', |
| 26 |
'widget-header-bg-color' => '#ffffff', |
| 27 |
'widget-header-text-color' => '#2C3E50', |
| 28 |
'widget-body-bg-color' => '#ffffff', |
| 29 |
'widget-body-label-color' => '#9c9c9c', |
| 30 |
'widget-body-text-color' => '#2C3E50', |
| 31 |
) |
| 32 |
); |
| 33 |
wp_die(); |
| 34 |
?> |