PluginProbe
Taskbuilder – Project Management & Task Management Tool With Kanban Board / 1.0.3
Taskbuilder – Project Management & Task Management Tool With Kanban Board v1.0.3
6.0.6 6.0.5 6.0.2 6.0.3 6.0.4 6.0.1 6.0.0 5.0.8 5.0.9 4.0.9 5.0.0 5.0.1 5.0.2 5.0.3 5.0.4 5.0.5 5.0.6 5.0.7 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 All 58 releases
taskbuilder / includes / admin / settings / wppm_set_general_settings.php

wppm_set_general_settings.php in Taskbuilder – Project Management & Task Management Tool With Kanban Board 1.0.3, at includes/admin/settings/wppm_set_general_settings.php

16 lines 711 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) {
3 exit; // Exit if accessed directly
4 }
5
6 global $current_user,$wpscfunction;
7 if (!($current_user->ID && $current_user->has_cap('manage_options'))) {
8 exit;
9 }
10 $wppm_task_list_view = isset($_POST) && isset(($_POST['wppm_task_list_view'])) ? sanitize_text_field($_POST['wppm_task_list_view']) : '';
11 update_option('wppm_default_task_list_view',$wppm_task_list_view);
12 $wppm_project_time = isset($_POST) && isset(($_POST['wppm_project_time'])) ? sanitize_text_field($_POST['wppm_project_time']) : '1';
13 update_option('wppm_project_time',$wppm_project_time);
14 do_action('wppm_set_general_settings');
15
16 echo '{ "sucess_status":"1","messege":"'.__('Settings saved.','taskbuilder').'" }';