Yoast\WP\SEO\Routes

Wincher_Route::untrack_keyphrase()publicYoast 1.0

Untracks the tracked keyphrase.

Метод класса: Wincher_Route{}

Хуков нет.

Возвращает

WP_REST_Response. The response.

Использование

$Wincher_Route = new Wincher_Route();
$Wincher_Route->untrack_keyphrase( $request );
$request(WP_REST_Request) (обязательный)
The request. This request should have a code param set.

Код Wincher_Route::untrack_keyphrase() Yoast 20.0

public function untrack_keyphrase( WP_REST_Request $request ) {
	$data = $this->keyphrases_action->untrack_keyphrase( $request['keyphraseID'] );

	return new WP_REST_Response( $data, $data->status );
}