Overview

Namespaces

  • None
  • WPGMZA
    • Integration
    • Selector

Classes

  • AutoLoader
  • Crud
  • DOMDocument
  • DOMElement
  • Factory
  • GDPRCompliance
  • GoogleGeocoder
  • GoogleMap
  • GoogleMapsAPILoader
  • GoogleMapsLoader
  • LatLng
  • Map
  • MapsEngineDialog
  • Marker
  • ModalDialog
  • NominatimGeocodeCache
  • OLLoader
  • Plugin
  • RestAPI
  • ScriptLoader
  • Strings

Functions

  • create_marker_instance_delegate
  • create_plugin_instance
  • query_nominatim_cache
  • store_nominatim_cache
  • Overview
  • Namespace
  • Class

Class GDPRCompliance

This module handles all GDPR functionality for the plugin, including displaying notices, settings and handling logic

Namespace: WPGMZA
Located at class.gdpr-compliance.php
Methods summary
public
# __construct( )

Constructor

Constructor

public array
# getDefaultSettings( )

Gets the default GDPR settings

Gets the default GDPR settings

Returns

array
An array of key value pairs where the key is the setting name
public
# onPluginGetDefaultSettings( array $settings )

Hooks into wpgmza_plugin_get_default_settings filter, to add the default GDPR settings

Hooks into wpgmza_plugin_get_default_settings filter, to add the default GDPR settings

Parameters

$settings
settings array passed in by the Plugin instance
public
# onPrivacyPolicyNoticeDismissed( )

Called when the user dismisses the "check our updated privacy policy" admin notice, this call is made over AJAX. This sets a flag so the notice isn't displayed again.

Called when the user dismisses the "check our updated privacy policy" admin notice, this call is made over AJAX. This sets a flag so the notice isn't displayed again.

protected WPGMZA\DOMDocument
# getSettingsTabContent( )

Called by onGlobalSettingsTabContent to add the content to our GDPR tab on the settings page, triggered by the filter wpgmza_global_settings_tab_content.

Called by onGlobalSettingsTabContent to add the content to our GDPR tab on the settings page, triggered by the filter wpgmza_global_settings_tab_content.

Returns

WPGMZA\DOMDocument
The GDPR tab content
public string
# getNoticeHTML( boolean $checkbox = true )

Gets the HTML for the GDPR notice to display on the front end.

Gets the HTML for the GDPR notice to display on the front end.

Parameters

$checkbox
Whether to include a consent checkbox.

Returns

string
The HTML string for the GDPR notice
public string
# getPrivacyPolicyNoticeHTML( )

Gets the HTML for the back end "check our updated privacy policy" notice. This will return an empty string if the notice has already been dismissed.

Gets the HTML for the back end "check our updated privacy policy" notice. This will return an empty string if the notice has already been dismissed.

Returns

string
The notice HTML.
public string
# getConsentPromptHTML( )

Gets the consent prompt HTML, including the consent button.

Gets the consent prompt HTML, including the consent button.

Returns

string
The prompt HTML.
public string
# onGlobalSettingsTabs( string $input )

Callback for the wpgmza_global_settings_tabs filter. This adds the GDPR tab. Please note this is the tab itself, as opposed to the tab content.

Callback for the wpgmza_global_settings_tabs filter. This adds the GDPR tab. Please note this is the tab itself, as opposed to the tab content.

Parameters

$input
The HTML string passed in by the filter.

Returns

string
The HTML for the tab.
public string
# onGlobalSettingsTabContent( string $input )

Callback for the wpgmza_global_settings_tab_content filter. This adds the GPDR tab content. Please note this is for the tab content, as opposed to the tab itself.

Callback for the wpgmza_global_settings_tab_content filter. This adds the GPDR tab content. Please note this is for the tab content, as opposed to the tab itself.

Parameters

$input
The HTML string passed in by the filter.

Returns

string
The HTML for the tab content.
public
# onPOST( )

Handles POST data when the settings page saves.

Handles POST data when the settings page saves.

API documentation generated by ApiGen