Yoast\WP\SEO\Routes

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 19.11

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

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