Class GDPRCompliance
This module handles all GDPR functionality for the plugin, including displaying notices, settings and handling logic
public
|
|
public
array
|
|
public
|
#
onPluginGetDefaultSettings( array $settings )
Hooks into wpgmza_plugin_get_default_settings filter, to add the default GDPR settings |
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. |
protected
|
#
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. |
public
string
|
#
getNoticeHTML( boolean $checkbox = true )
Gets the HTML for the GDPR notice to display on the front end. |
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. |
public
string
|
|
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. |
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. |
public
|