PATH:
home
/
letacommog
/
lavenue
/
wp-content
/
plugins
/
wordpress-gdpr
/
admin
<?php class WordPress_GDPR_Policy_Update extends WordPress_GDPR { protected $plugin_name; protected $version; protected $options; /** * Store Locator Plugin Construct * @author Daniel Barenkamp * @version 1.0.0 * @since 1.0.0 * @link http://plugins.db-dzine.com * @param string $plugin_name * @param string $version */ public function __construct($plugin_name, $version) { $this->plugin_name = $plugin_name; $this->version = $version; } /** * Init the Public * @author Daniel Barenkamp * @version 1.0.0 * @since 1.0.0 * @link http://plugins.db-dzine.com * @return boolean */ public function init() { global $wordpress_gdpr_options; $this->options = $wordpress_gdpr_options; if (!$this->get_option('enable')) { return false; } return true; } public function check_action() { if(!isset($_GET['wordpress_gdpr']) || !is_admin()) { return false; } if(!isset($_GET['wordpress_gdpr']['send-privacy-policy-update'])) { return false; } $from = $this->get_option('privacyPolicyUpdateEmail'); $subject = $this->get_option('privacyPolicyUpdateSubject'); $headers = array( 'From: ' . $from . ' <' . $from . '>' . "\r\n", 'Content-Type: text/html; charset=UTF-8' ); $users = get_users(); foreach ($users as $user) { $user_data = get_userdata($user->ID); if(empty($user_data->data->user_email) || !isset($user_data->data->user_email)) { continue; } $text = wpautop( sprintf( $this->get_option('privacyPolicyUpdateText'), $user_data->data->user_nicename) ); wp_mail($user_data->data->user_email, $subject, $text, $headers); } wp_redirect( get_admin_url() . 'admin.php?page=wordpress_gdpr_options_options' ); } }
[+]
..
[-] class-wordpress-gdpr-term-order.php
[edit]
[-] class-wordpress-gdpr-consent-log.php
[edit]
[-] class-wordpress-gdpr-requests.php
[edit]
[-] class-wordpress-gdpr-admin.php
[edit]
[-] class-wordpress-gdpr-users.php
[edit]
[-] class-wordpress-gdpr-data-export.php
[edit]
[-] class-wordpress-gdpr-data-retention.php
[edit]
[+]
js
[-] class-wordpress-gdpr-data-breach.php
[edit]
[-] options-init.php
[edit]
[-] class-wordpress-gdpr-data-delete.php
[edit]
[-] class-wordpress-gdpr-install-pages.php
[edit]
[-] class-wordpress-gdpr-policy-update.php
[edit]
[-] index.php
[edit]
[-] class-wordpress-gdpr-services.php
[edit]
[-] class-wordpress-gdpr-migrate-services.php
[edit]