PluginProbe
Taskbuilder – Project Management & Task Management Tool With Kanban Board / 1.0.2
Taskbuilder – Project Management & Task Management Tool With Kanban Board v1.0.2
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 / email_notifications / wppm_set_en_general_setting.php

wppm_set_en_general_setting.php in Taskbuilder – Project Management & Task Management Tool With Kanban Board 1.0.2, at includes/admin/email_notifications/wppm_set_en_general_setting.php

27 lines 968 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, $wppmfunction;
7 if (!($current_user->ID && $current_user->has_cap('manage_options'))) {
8 exit;
9 }
10
11 // From Name
12 $from_name = isset($_POST) && isset($_POST['wppm_en_from_name']) ? sanitize_text_field($_POST['wppm_en_from_name']) : '';
13 update_option('wppm_en_from_name',$from_name);
14
15 // From Email
16 $from_email = isset($_POST) && isset($_POST['wppm_en_from_email']) ? sanitize_text_field($_POST['wppm_en_from_email']) : '';
17 update_option('wppm_en_from_email',$from_email);
18
19 // Block emails
20 $ignore_emails = isset($_POST) && isset($_POST['wppm_en_ignore_emails']) ? explode("\n", ($_POST['wppm_en_ignore_emails'])) : array();
21 $ignore_emails = $wppmfunction->sanitize_array($ignore_emails);
22 update_option('wppm_en_ignore_emails',$ignore_emails);
23
24 do_action('wppm_set_en_gerneral_settings');
25
26 echo '{ "sucess_status":"1","messege":"'.__('Settings saved.','taskbuilder').'" }';
27