# taskbuilder/6.0.6/includes/admin/settings/wppm_reset_ap_settings.php

Taskbuilder – Project Management &amp; Task Management Tool With Kanban Board, version 6.0.6. 27 lines.

- Page: https://pluginprobe.com/plugins/taskbuilder/6.0.6/code/includes/admin/settings/wppm_reset_ap_settings.php
- Raw: https://pluginprobe.com/plugins/taskbuilder/6.0.6/raw/includes/admin/settings/wppm_reset_ap_settings.php
- Modified: 2026-08-26T12:08:58+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/taskbuilder/6.0.6/code/includes/admin/settings/wppm_reset_ap_settings.php#L10-L20`.

```php
<?php
if ( ! defined( 'ABSPATH' ) ) {
  exit; // Exit if accessed directly
}

global $current_user,$wpdb,$wppmfunction;

if (!($current_user->ID && $current_user->has_cap('manage_options') || ($current_user->ID && $current_user->has_cap('wppm_admin')))) {
	exit;
}
if ( check_ajax_referer( 'wppm_reset_ap_settings', '_ajax_nonce', false ) != 1 ) {
  wp_send_json_error( 'Unauthorised request!', 401 );
}
update_option(
    'wppm-ap-settings',
    array(
        'tab-background-color'     => '#0052CC',
        'tab-text-color'    => '#fff',
        'add-new-button-bg-color'	=>'#0052CC',
        'add-new-button-text-color' =>'#fff',
        'add-new-button-hover-color'=>'#0065ff',
        'save-changes-button-bg-color'=>'#306EFF',
        'save-changes-button-text-color'=>'#fff'
    )
);
wp_die();
?>
```
