PHP code example of automattic / jetpack-terms-of-service
1. Go to this page and download the library: Download automattic/jetpack-terms-of-service library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
automattic / jetpack-terms-of-service example snippets
use Automattic\Jetpack\Terms_Of_Service;
$terms_of_service = new Terms_Of_Service();
$terms_of_service->agree();
use Automattic\Jetpack\Terms_Of_Service;
$terms_of_service = new Terms_Of_Service();
$terms_of_service->revoke();
use Automattic\Jetpack\Terms_Of_Service;
$terms_of_service = new Terms_Of_Service();
$has_agreed = $terms_of_service->has_agreed();