PluginProbe
Image Source Control Lite – Show Image Credits and Captions / trunk
Image Source Control Lite – Show Image Credits and Captions vtrunk
3.12.0 3.11.0 trunk 1.1 1.1.1 1.1.2 1.1.2.1 1.1.3 1.10 1.10.1 1.10.2 1.10.3 1.10.4 1.10.5 1.2 1.2.0.1 1.2.0.2 1.2.0.3 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.4.1 1.3.5 All 110 releases
image-source-control-isc / includes / settings / section.php

section.php in Image Source Control Lite – Show Image Credits and Captions trunk, at includes/settings/section.php

47 lines 747 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace ISC\Settings;
4
5 use ISC\Plugin;
6
7 /**
8 * Main settings class
9 */
10 class Section {
11
12 /**
13 * Constructor
14 */
15 public function __construct() {
16 $this->add_settings_section();
17
18 // validate settings on save
19 add_filter( 'isc_settings_on_save_after_validation', [ $this, 'validate_settings' ], 10, 2 );
20 }
21
22 /**
23 * Add settings section
24 */
25 public function add_settings_section() {
26 }
27
28 /**
29 * Validate settings
30 *
31 * @param array $output output data.
32 * @param array $input input data.
33 *
34 * @return array $output
35 */
36 public function validate_settings( array $output, array $input ): array {
37 return $output;
38 }
39
40 /**
41 * Get the ISC options
42 */
43 protected function get_options() {
44 return Plugin::get_options();
45 }
46 }
47