API
This class handle all stuffs relate to API.
Description #
Source #
Methods #
- build_site_stats — Query the site stats.
- cache_projects_data — Caches projects data and updates related options.
- clear_project_caches — Clears all project-related caches.
- fetch_and_cache_projects — Fetches fresh projects data from API and caches it.
- filter_valid_projects — Filters projects to ensure all required fields are present and of correct type.
- get_cached_projects — Gets cached projects if the cache is valid.
- get_multisite_active_sites — Gets multi-site active site count.
- get_projects — Return all the projects, and cache it.
- get_raw_projects_cache — Retrieves raw projects cache data.
- remove_domain — Remove the domain from API side
- verify_license — Trigger a license verification.