Yoast\WP\SEO\Routes

Integrations_Route::set_wordproof_active()publicYoast 1.0

Sets WordProof integration state.

{} Это метод класса: Integrations_Route{}

Хуков нет.

Возвращает

WP_REST_Response.

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

$Integrations_Route = new Integrations_Route();
$Integrations_Route->set_wordproof_active( $request );
$request(WP_REST_Request) (обязательный)
The request.

Код Integrations_Route::set_wordproof_active() Yoast 19.7.1

public function set_wordproof_active( WP_REST_Request $request ) {
	$data = $this
		->integrations_action
		->set_integration_active( 'wordproof', $request->get_json_params() );

	return new WP_REST_Response(
		[ 'json' => $data ]
	);
}