# woo-additional-terms/1.7.3/src/Settings/Sections/Section.php

Additional Terms Lite for WooCommerce, version 1.7.3. 47 lines.

- Page: https://pluginprobe.com/plugins/woo-additional-terms/1.7.3/code/src/Settings/Sections/Section.php
- Raw: https://pluginprobe.com/plugins/woo-additional-terms/1.7.3/raw/src/Settings/Sections/Section.php
- Modified: 2024-04-09T12:06:28+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/woo-additional-terms/1.7.3/code/src/Settings/Sections/Section.php#L10-L20`.

```php
<?php
/**
 * The plugin settings sections.
 *
 * @since 1.6.0
 *
 * @package woo-additional-terms
 */

namespace Woo_Additional_Terms\Settings\Sections;

/**
 * Class Settings sections.
 */
abstract class Section {

	/**
	 * Retrieve the settings fields for the section.
	 *
	 * @since 1.6.0
	 *
	 * @return array
	 */
	abstract public function get_fields();

	/**
	 * Compile a list of the available field keys.
	 *
	 * @since 1.6.0
	 *
	 * @return array
	 */
	protected function get_field_keys() {

		static $keys = array();

		if ( empty( $keys ) ) {
			$keys = array_filter(
				array_keys( $this->get_fields() ),
				static fn( $key) => mb_strpos( $key, 'section_' ) !== 0
			);
		}

		return $keys;
	}
}

```
