EVF_Stats class.
Methods
- __construct — Constructor of the class.
- call_api — Call API and gather system information This function gathers information about the plugin, theme, and site, such as the WordPress version, PHP version, MySQL version, server software, SSL status, multi-site status, and theme name and version.
- get_base_product — Get Pro addon file.
- get_base_product_license — Get product license key.
- get_entry_count — Get the number of entries
- get_form_count — Get the number of published forms
- get_plugin_lists — Get the plugin information of active plugins and the base plugin
- get_sites_total — Get the total number of sites in a multi-site installation
- get_timezone_offset — Get the timezone offset Returns the timezone string in the format +00:00 or -00:00 if WordPress version is greater than 5.3.
- init_usage — Initialize usage tracking This function adds an action hook that runs the ‘process’ method on a bi-weekly basis, only when the WordPress cron system is running.
- is_premium — Check the is premium or not.
- is_usage_allowed — Check if usage tracking is allowed
- process — Process the API call This function will check if the usage is allowed and if it has been more than 15 days since the last API call.
- run_on_save — Run the process once when user gives consent.
- send_request — Send Request to API.