| 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_task_list', '_ajax_nonce', false ) != 1 ) { |
| 12 |
wp_send_json_error( 'Unauthorised request!', 401 ); |
| 13 |
} |
| 14 |
update_option( |
| 15 |
'wppm-ap-task-list', |
| 16 |
array( |
| 17 |
'list-header-button-background-color'=>'#0052CC', |
| 18 |
'list-header-button-hover-color' =>'#0065ff', |
| 19 |
'list-header-button-text-color' =>'#fff', |
| 20 |
'list-header-background-color' => '#304FFE', |
| 21 |
'list-header-text-color' => '#fff', |
| 22 |
'list-item-odd-background-color' => '#fff', |
| 23 |
'list-item-odd-text-color' => '#2C3E50', |
| 24 |
'list-item-even-background-color' => '#F2F2F2', |
| 25 |
'list-item-even-text-color' => '#2C3E50', |
| 26 |
'list-item-hover-background-color' => '#F5F5F5', |
| 27 |
'list-item-hover-text-color' => '#2C3E50', |
| 28 |
) |
| 29 |
); |
| 30 |
wp_die(); |
| 31 |
?> |