Gravity_Forms\Gravity_Forms\Telemetry\GF_Telemetry_Snapshot_Data
Source: includes/telemetry/class-gf-telemetry-snapshot-data.php:11
Details
- Kind:
class - Namespace:
Gravity_Forms\Gravity_Forms\Telemetry - Extends:
GF_Telemetry_Data
Properties
| Property | Type | Description |
|---|---|---|
$key | string | Identifier for this data object. |
Methods
| Method | Description |
|---|---|
get_callbacks() | Get additional callbacks that return data to be included in the telemetry snapshot. |
get_site_basic_info() | Get basic site info for telemetry. |
get_gf_settings() | Collect the data from the Gravity Forms settings page |
get_legacy_forms() | Count the number of forms with legacy mode enabled. |
data_sent() | Stores the response from the version.php endpoint, to be used by the license service. |
Method Reference
get_callbacks()
public function get_callbacks()
Get additional callbacks that return data to be included in the telemetry snapshot.
Returns
array
Since: 2.8
Source: includes/telemetry/class-gf-telemetry-snapshot-data.php:48
get_site_basic_info()
public function get_site_basic_info()
Get basic site info for telemetry.
Returns
array
Since: 2.8
Source: includes/telemetry/class-gf-telemetry-snapshot-data.php:66
get_gf_settings()
public function get_gf_settings()
Collect the data from the Gravity Forms settings page
Returns
array
Since: 2.8.3
Source: includes/telemetry/class-gf-telemetry-snapshot-data.php:161
get_legacy_forms()
public function get_legacy_forms()
Count the number of forms with legacy mode enabled.
Returns
array
Since: 2.8.3
Source: includes/telemetry/class-gf-telemetry-snapshot-data.php:189
data_sent()
public static function data_sent( $response )
Stores the response from the version.php endpoint, to be used by the license service.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$response | array | Raw response from the API endpoint. |
Since: 2.8
Source: includes/telemetry/class-gf-telemetry-snapshot-data.php:214