# wordpress-seo/28.2/src/bulk-editor/infrastructure/endpoints/posts-endpoint.php

Yoast SEO – Advanced SEO with real-time guidance and built-in AI, version 28.2. 49 lines.

- Page: https://pluginprobe.com/plugins/wordpress-seo/28.2/code/src/bulk-editor/infrastructure/endpoints/posts-endpoint.php
- Raw: https://pluginprobe.com/plugins/wordpress-seo/28.2/raw/src/bulk-editor/infrastructure/endpoints/posts-endpoint.php
- Modified: 2026-07-07T11:18:50+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/wordpress-seo/28.2/code/src/bulk-editor/infrastructure/endpoints/posts-endpoint.php#L10-L20`.

```php
<?php

// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace Yoast\WP\SEO\Bulk_Editor\Infrastructure\Endpoints;

use Yoast\WP\SEO\Bulk_Editor\User_Interface\Posts_Route;

/**
 * Represents the bulk editor posts endpoint.
 */
class Posts_Endpoint implements Bulk_Editor_Endpoint_Interface {

	/**
	 * Gets the name.
	 *
	 * @return string
	 */
	public function get_name(): string {
		return 'posts';
	}

	/**
	 * Gets the namespace.
	 *
	 * @return string
	 */
	public function get_namespace(): string {
		return Posts_Route::ROUTE_NAMESPACE;
	}

	/**
	 * Gets the route.
	 *
	 * @return string
	 */
	public function get_route(): string {
		return Posts_Route::ROUTE_PREFIX;
	}

	/**
	 * Gets the URL.
	 *
	 * @return string
	 */
	public function get_url(): string {
		return \rest_url( $this->get_namespace() . $this->get_route() );
	}
}

```
