automattic/jetpack-terms-of-service

This package is abandoned and no longer maintained. The author suggests using the automattic/jetpack-connection package instead.

Everything need to manage the terms of service state. This is a deprecated package, use automattic/jetpack-connection.

Maintainers

Package info

github.com/Automattic/jetpack-terms-of-service

Type:jetpack-library

pkg:composer/automattic/jetpack-terms-of-service

Statistics

Installs: 518 477

Dependents: 0

Suggesters: 0

Stars: 1


README

A Terms of Service Package that lets us know that the master user has agreed to the the terms of service for this site.

Usage

Agree to the terms of service.

use Automattic\Jetpack\Terms_Of_Service;

$terms_of_service = new Terms_Of_Service();
$terms_of_service->agree();

Reject the terms of service.

use Automattic\Jetpack\Terms_Of_Service;

$terms_of_service = new Terms_Of_Service();
$terms_of_service->revoke();

Has the site agreed to the terms of service?

use Automattic\Jetpack\Terms_Of_Service;

$terms_of_service = new Terms_Of_Service();
$has_agreed = $terms_of_service->has_agreed();