PluginProbe
JobWP – Job Board Plugin for WordPress | Job Listings, Career Page & Applications / 2.3.9
JobWP – Job Board Plugin for WordPress | Job Listings, Career Page & Applications v2.3.9
2.5.0 trunk 1.0 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9 2.0 2.1 2.2 2.3 2.3.2 2.3.3 2.3.4 2.3.5 2.3.6 2.3.7 2.3.8 2.3.9 2.4.0 All 33 releases
jobwp / core / email-settings.php

email-settings.php in JobWP – Job Board Plugin for WordPress | Job Listings, Career Page & Applications 2.3.9, at core/email-settings.php

58 lines 1.6 KB
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;
4 }
5
6 /**
7 * Trait: Single Styles Settings
8 */
9 trait Jobwp_Email_Settings
10 {
11 protected $fields, $settings, $options;
12
13 protected function jobwp_set_email_settings( $post ) {
14
15 $this->fields = $this->jobwp_email_settings_option_fileds();
16
17 $this->options = $this->jobwp_build_set_settings_options( $this->fields, $post );
18
19 $this->settings = apply_filters( 'jobwp_email_settings', $this->options, $post );
20
21 return update_option( 'jobwp_email_settings', $this->settings );
22
23 }
24
25 function jobwp_get_email_settings() {
26
27 $this->fields = $this->jobwp_email_settings_option_fileds();
28 $this->settings = get_option('jobwp_email_settings');
29
30 return $this->jobwp_build_get_settings_options( $this->fields, $this->settings );
31 }
32
33 protected function jobwp_email_settings_option_fileds() {
34
35 return [
36 [
37 'name' => 'jobwp_candidate_email_subject',
38 'type' => 'text',
39 'default' => 'Thank you for applying!',
40 ],
41 [
42 'name' => 'jobwp_candidate_email_body',
43 'type' => 'kses_post',
44 'default' => '',
45 ],
46 [
47 'name' => 'jobwp_re_from_name',
48 'type' => 'text',
49 'default' => '',
50 ],
51 [
52 'name' => 'jobwp_can_header_from_email',
53 'type' => 'email',
54 'default' => '',
55 ],
56 ];
57 }
58 }