# image-source-control-isc/trunk/includes/settings/section.php

Image Source Control Lite – Show Image Credits and Captions, version trunk. 47 lines.

- Page: https://pluginprobe.com/plugins/image-source-control-isc/trunk/code/includes/settings/section.php
- Raw: https://pluginprobe.com/plugins/image-source-control-isc/trunk/raw/includes/settings/section.php
- Modified: 2025-03-10T09:14:02+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/image-source-control-isc/trunk/code/includes/settings/section.php#L10-L20`.

```php
<?php

namespace ISC\Settings;

use ISC\Plugin;

/**
 * Main settings class
 */
class Section {

	/**
	 * Constructor
	 */
	public function __construct() {
		$this->add_settings_section();

		// validate settings on save
		add_filter( 'isc_settings_on_save_after_validation', [ $this, 'validate_settings' ], 10, 2 );
	}

	/**
	 * Add settings section
	 */
	public function add_settings_section() {
	}

	/**
	 * Validate settings
	 *
	 * @param array $output output data.
	 * @param array $input  input data.
	 *
	 * @return array $output
	 */
	public function validate_settings( array $output, array $input ): array {
		return $output;
	}

	/**
	 * Get the ISC options
	 */
	protected function get_options() {
		return Plugin::get_options();
	}
}

```
