# wp-parsely/3.16.2/src/RemoteAPI/class-related-api.php

Parse.ly, version 3.16.2. 40 lines.

- Page: https://pluginprobe.com/plugins/wp-parsely/3.16.2/code/src/RemoteAPI/class-related-api.php
- Raw: https://pluginprobe.com/plugins/wp-parsely/3.16.2/raw/src/RemoteAPI/class-related-api.php
- Modified: 2024-07-08T10:55:08+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.16.2/code/src/RemoteAPI/class-related-api.php#L10-L20`.

```php
<?php
/**
 * Class for Related API (`/related`).
 *
 * @package Parsely
 * @since   3.2.0
 */

declare(strict_types=1);

namespace Parsely\RemoteAPI;

use Parsely\Parsely;
use WP_REST_Request;

/**
 * Class for Related API (`/related`).
 *
 * @since 3.2.0
 */
class Related_API extends Base_Endpoint_Remote {
	protected const API_BASE_URL = Parsely::PUBLIC_API_BASE_URL;
	protected const ENDPOINT     = '/related';
	protected const QUERY_FILTER = 'wp_parsely_related_endpoint_args';

	/**
	 * Returns whether the endpoint is available for access by the current
	 * user.
	 *
	 * @since 3.14.0
	 * @since 3.16.0 Added the `$request` parameter.
	 *
	 * @param WP_REST_Request|null $request The request object.
	 * @return bool
	 */
	public function is_available_to_current_user( $request = null ): bool {
		return true;
	}
}

```
