Wincher_Route::get_tracked_keyphrases()publicYoast 1.0

Gets the tracked keyphrases via POST. This is done via POST, so we don't potentially run into URL limit issues when a lot of long keyphrases are tracked.

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

Хуков нет.


WP_REST_Response. The response.


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

Код Wincher_Route::get_tracked_keyphrases() Yoast 22.1

public function get_tracked_keyphrases( WP_REST_Request $request ) {
	$data = $this->keyphrases_action->get_tracked_keyphrases( $request['keyphrases'], $request['permalink'], $request['startAt'] );

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