# wordpress-seo/28.4/src/task-list/infrastructure/endpoints/complete-task-endpoint.php

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

- Page: https://pluginprobe.com/plugins/wordpress-seo/28.4/code/src/task-list/infrastructure/endpoints/complete-task-endpoint.php
- Raw: https://pluginprobe.com/plugins/wordpress-seo/28.4/raw/src/task-list/infrastructure/endpoints/complete-task-endpoint.php
- Modified: 2026-03-31T11:40:40+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.4/code/src/task-list/infrastructure/endpoints/complete-task-endpoint.php#L10-L20`.

```php
<?php

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

use Yoast\WP\SEO\Task_List\User_Interface\Tasks\Complete_Task_Route;

/**
 * Represents the complete task endpoint.
 */
class Complete_Task_Endpoint implements Task_List_Endpoint_Interface {

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

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

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

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

```
