mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-18 22:23:37 +09:00
- fixed Install Info settings section on PHP7.1;
- GDPR compatibility; - added support for GDPR Personal Data Exporter; - added support for GDPR Personal Data Eraser; - added feature: New privacy field to form builder for GDPR consent collection; - added GDPR privacy policy guide text;
This commit is contained in:
@@ -485,6 +485,7 @@ if ( ! class_exists( 'UM' ) ) {
|
||||
$this->ajax_init();
|
||||
$this->metabox();
|
||||
$this->admin_upgrade()->init_packages_ajax_handlers();
|
||||
$this->admin_gdpr();
|
||||
} elseif ( $this->is_request( 'admin' ) ) {
|
||||
$this->admin();
|
||||
$this->admin_menu();
|
||||
@@ -497,6 +498,7 @@ if ( ! class_exists( 'UM' ) ) {
|
||||
$this->users();
|
||||
$this->dragdrop();
|
||||
$this->plugin_updater();
|
||||
$this->admin_gdpr();
|
||||
} elseif ( $this->is_request( 'frontend' ) ) {
|
||||
$this->enqueue();
|
||||
$this->account();
|
||||
@@ -525,6 +527,7 @@ if ( ! class_exists( 'UM' ) ) {
|
||||
//$this->tracking();
|
||||
$this->mobile();
|
||||
$this->external_integrations();
|
||||
$this->gdpr();
|
||||
}
|
||||
|
||||
|
||||
@@ -640,6 +643,48 @@ if ( ! class_exists( 'UM' ) ) {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* GDPR privacy policy
|
||||
*
|
||||
* @since 2.0.14
|
||||
*
|
||||
* @return bool|um\admin\core\Admin_GDPR()
|
||||
*/
|
||||
function admin_gdpr() {
|
||||
global $wp_version;
|
||||
|
||||
if ( version_compare( $wp_version, '4.9.6', '<' ) ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ( empty( $this->classes['admin_gdpr'] ) ) {
|
||||
$this->classes['admin_gdpr'] = new um\admin\core\Admin_GDPR();
|
||||
}
|
||||
return $this->classes['admin_gdpr'];
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* GDPR privacy policy
|
||||
*
|
||||
* @since 2.0.14
|
||||
*
|
||||
* @return bool|um\core\GDPR()
|
||||
*/
|
||||
function gdpr() {
|
||||
global $wp_version;
|
||||
|
||||
if ( version_compare( $wp_version, '4.9.6', '<' ) ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ( empty( $this->classes['gdpr'] ) ) {
|
||||
$this->classes['gdpr'] = new um\core\GDPR();
|
||||
}
|
||||
return $this->classes['gdpr'];
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @since 2.0
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user