calderawp / edd-sl-queries
Useful queries for Easy Digital Downloads Software Licensing.
dev-master
2016-12-13 04:15 UTC
Requires
- php: >=7.0.0
This package is auto-updated.
Last update: 2024-12-08 07:19:07 UTC
README
Useful queries for Easy Digital Downloads Software Licensing.
Requires PHP 7.0 or later
These queries are also avaible via REST API using our EDD Software Licensing Endpoints plugin.
Install
"repositories" : [
{
"type": "git",
"url" : "https://github.com/CalderaWP/edd-sl-queries"
}
],
"require": {
"php": ">=7.0.0",
"CalderaWP/edd-sl-queries": "dev-master"
}
Usage
- URLs of all sites with an activated license:
$sl = new \CalderaWP\EDD\SL\sites();
$sites = $sl->get_all();
- URLs of all sites with an active license for a specific download
$sl = new \CalderaWP\EDD\SL\sites();
$sites = $sl->get_by_download(42);
- URLs of all sites with an active license for a specific user
$sl = new \CalderaWP\EDD\SL\sites();
$sites = $sl->get_user_sites(42);
Copyright/ License
Copyright 2016 Josh Pollock & CalderaWP LLC. Licensed under the terms of the GNU GPL v2 or later.