1 | <?php |
||
5 | class EmailLogSetting extends Setting { |
||
6 | |||
7 | /** |
||
8 | * Implement `initialize()` method. |
||
9 | */ |
||
10 | protected function initialize() { |
||
17 | |||
18 | /** |
||
19 | * Implement `get_fields()` method. |
||
20 | * |
||
21 | * @return array |
||
22 | */ |
||
23 | public function get_fields() { |
||
42 | |||
43 | /** |
||
44 | * Implement `render()` method. |
||
45 | */ |
||
46 | public function render() { |
||
51 | |||
52 | /** |
||
53 | * Implement `sanitize()` method. |
||
54 | * |
||
55 | * @param mixed $values {@inheritDoc} |
||
56 | * |
||
57 | * @return mixed $values {@inheritDoc} |
||
58 | */ |
||
59 | public function sanitize( $values ) { |
||
70 | |||
71 | /** |
||
72 | * Renders the Capability field to set Capability. |
||
73 | * |
||
74 | * @param array $args |
||
75 | */ |
||
76 | public function render_email_log_capability_field( $args ) { |
||
101 | |||
102 | /** |
||
103 | * Sets the capability to view the Email Log content. |
||
104 | * |
||
105 | * Uses the Email Log API to set capability. Refer |
||
106 | * @link https://wpemaillog.com/docs/developer-docs/el_view_email_log_capability/ |
||
107 | * |
||
108 | * @param string $capability |
||
109 | */ |
||
110 | protected function modify_view_log_capability( $capability ) { |
||
113 | } |