# wp-parsely/3.23.3/src/rest-api/settings/class-settings-controller.php

Parse.ly, version 3.23.3. 50 lines.

- Page: https://pluginprobe.com/plugins/wp-parsely/3.23.3/code/src/rest-api/settings/class-settings-controller.php
- Raw: https://pluginprobe.com/plugins/wp-parsely/3.23.3/raw/src/rest-api/settings/class-settings-controller.php
- Modified: 2025-10-13T08:45: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/wp-parsely/3.23.3/code/src/rest-api/settings/class-settings-controller.php#L10-L20`.

```php
<?php
/**
 * API Settings Controller
 *
 * @package Parsely
 * @since   3.17.0
 */

declare(strict_types=1);

namespace Parsely\REST_API\Settings;

use Parsely\REST_API\REST_API_Controller;

/**
 * The Settings API Controller.
 *
 * Used to define the namespace, version, and endpoints for the Settings API.
 *
 * @since 3.17.0
 */
class Settings_Controller extends REST_API_Controller {
	/**
	 * Gets the prefix for this API route.
	 *
	 * @since 3.17.0
	 *
	 * @return string The namespace.
	 */
	public static function get_route_prefix(): string {
		return 'settings';
	}

	/**
	 * Initializes the Settings API endpoints.
	 *
	 * @since 3.17.0
	 */
	public function init(): void {
		$endpoints = array(
			new Endpoint_Dashboard_Widget_Settings( $this ),
			new Endpoint_Editor_Sidebar_Settings( $this ),
			new Endpoint_Traffic_Boost_Settings( $this ),
			new Endpoint_Headline_Testing_Settings( $this ),
		);

		$this->register_endpoints( $endpoints );
	}
}

```
