WC_REST_Ping_V4_Controller::get_ping_permissions_checkpublicWC 1.0

Check whether a given request has permission to read ping.

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

Хуков нет.

Возвращает

WP_Error|true|false.

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

$WC_REST_Ping_V4_Controller = new WC_REST_Ping_V4_Controller();
$WC_REST_Ping_V4_Controller->get_ping_permissions_check( $request );
$request(WP_REST_Request) (обязательный)
Full details about the request.

Код WC_REST_Ping_V4_Controller::get_ping_permissions_check() WC 10.3.4

public function get_ping_permissions_check( $request ) {
	// Allow ping to be accessible without authentication for basic connectivity testing.
	return true;
}