Marcus
Forum Replies Created
-
Hello Team)) Maybe u give me access to Pro version your plugin for debug etc and ideas ))???
Thanks) Will wait your new version 1.3.0) U best Boss!
Sound good)
Thank you for the update. I’ve noticed that after updating the plugin to version 1.2.1, I encountered an issue with the notification “Thank you for activating WooCommerce Blacklist Manager! Please go to Settings to configure the plugin.” It seems that this notification doesn’t close on the web server, no matter what I do. Could you please remove this persistent notice from the plugin’s functions and enhance the solution?
Here’s the current function responsible for redirecting users to the WooCommerce Blacklist Manager settings page upon activation of the plugin:
/** * Function redirects the user to the WooCommerce Blacklist Manager settings page upon activation of the plugin. */ public function wcb_blacklist_activation_redirect($wcbm_plugin) { if ($wcbm_plugin == WC_BLACKLIST_MANAGER_PLUGIN_BASENAME && !isset($_GET['page']) && $_GET['page'] !== 'wc-blacklist-manager-settings') { wp_redirect(admin_url('admin.php?page=wc-blacklist-manager-settings')); exit(); } } /** * Function to display the notice only on the settings page (blacklist-manager-settings) and remove it after closure. */ public function display_blacklist_notice() { if (isset($_GET['page']) && $_GET['page'] === 'wc-blacklist-manager-settings' && !get_option('blacklist_notice_closed')) { ?> <div class="notice notice-info is-dismissible"> <p><?php _e('Thank you for activating WooCommerce Blacklist Manager! Please go to Settings to configure the plugin.', 'your-text-domain'); ?></p> </div> <?php } } // Hook to display the notice add_action('admin_notices', array($this, 'display_blacklist_notice')); // Hook to handle notice closure add_action('wp_ajax_blacklist_notice_closed', array($this, 'blacklist_notice_closed')); /** * Function to handle closure of the notice. */ public function blacklist_notice_closed() { update_option('blacklist_notice_closed', true); wp_die(); }Additionally, could we modify it to display the notice only on the settings page “blacklist-manager-settings,” and then hide it after the user closes it on this specific page?
Sound good?
Hi YoOhw Studio,
Sure, I’d be happy to help with that. 🙂 I agree that removing the notice (I recommend using another solution) would help streamline the code and create nice functions for setting up the plugin without the notice. I think redirecting to settings after activating the plugin once is better than having this activation notice. Moreover, this notice behaves strangely because it saves the choice settings in the META settings, which are constantly deleted after cache clearing by WP Rocket and others, making this notice active again. My solution is simply to redirect people to specific settings sections after activating the plugin. Here’s the method.
The code is ready for testing.
<?php /** * Plugin Name: WooCommerce Blacklist Manager * Plugin URI: https://wordpress.org/plugins/wc-blacklist-manager * Description: A Blacklist management for WooCommerce. Easily helps store owners to avoid unwanted customers. * Version: 1.2.1 * Author: Yo Ohw * Author URI: https://yoohw.com * License: GPL v2 or later * License URI: https://www.gnu.org/licenses/gpl-3.0.html * Requires at least: 5.2 * Requires PHP: 7.0 * Requires Plugins: woocommerce * Text Domain: wc-blacklist-manager */ if (!defined('ABSPATH')) { exit; } // Get the version from the plugin header comment $wcb_plugin_data = get_file_data(__FILE__, ['Version' => 'Version'], false); $wcb_plugin_version = isset($wcb_plugin_data['Version']) ? $wcb_plugin_data['Version'] : ''; // Define constants define('WC_BLACKLIST_MANAGER_VERSION', $wcb_plugin_version); define('WC_BLACKLIST_MANAGER_PLUGIN_FILE', __FILE__); define('WC_BLACKLIST_MANAGER_PLUGIN_DIR', plugin_dir_path(__FILE__)); define('WC_BLACKLIST_MANAGER_PLUGIN_BASENAME', plugin_basename(__FILE__)); class WC_Blacklist_Manager { /** * Constructor. */ public function __construct() { // Check if WooCommerce is active if (!in_array('woocommerce/woocommerce.php', apply_filters('active_plugins', get_option('active_plugins')))) { add_action('admin_notices', [$this, 'wc_blacklist_missing_wc_notice']); return; } add_action('plugins_loaded', [$this, 'load_textdomain']); add_action('admin_enqueue_scripts', [$this, 'wcb_enqueue_assets']); add_action('wp_ajax_dismiss_wc_blacklist_manager_notice', [$this, 'wc_blacklist_manager_dismiss_notice']); add_action('wp_ajax_never_show_wc_blacklist_manager_notice', [$this, 'wc_blacklist_manager_never_show_notice']); add_action('activated_plugin', [$this, 'wcb_blacklist_activation_redirect'], 10, 2); // Include dependencies include_once WC_BLACKLIST_MANAGER_PLUGIN_DIR . 'inc/cores/yobm-wc-blacklist-manager-menu.php'; include_once WC_BLACKLIST_MANAGER_PLUGIN_DIR . 'inc/cores/yobm-wc-blacklist-manager-database.php'; include_once WC_BLACKLIST_MANAGER_PLUGIN_DIR . 'inc/backend/yobm-wc-blacklist-manager-button-add-to-blacklist.php'; include_once WC_BLACKLIST_MANAGER_PLUGIN_DIR . 'inc/backend/yobm-wc-blacklist-manager-button-add-to-blocklist.php'; include_once WC_BLACKLIST_MANAGER_PLUGIN_DIR . 'inc/backend/yobm-wc-blacklist-manager-dashboard.php'; include_once WC_BLACKLIST_MANAGER_PLUGIN_DIR . 'inc/backend/yobm-wc-blacklist-manager-notifications.php'; include_once WC_BLACKLIST_MANAGER_PLUGIN_DIR . 'inc/backend/yobm-wc-blacklist-manager-settings.php'; include_once WC_BLACKLIST_MANAGER_PLUGIN_DIR . 'inc/backend/actions/yobm-wc-blacklist-manager-notificaitions-blacklisted-email.php'; include_once WC_BLACKLIST_MANAGER_PLUGIN_DIR . 'inc/backend/actions/yobm-wc-blacklist-manager-settings-blocklisted.php'; include_once WC_BLACKLIST_MANAGER_PLUGIN_DIR . 'inc/backend/actions/yobm-wc-blacklist-manager-settings-ip-blacklisted.php'; include_once WC_BLACKLIST_MANAGER_PLUGIN_DIR . 'inc/backend/actions/yobm-wc-blacklist-manager-settings-domain-blocking.php'; } /** * Load plugin text domain for translations. */ public function load_textdomain() { load_plugin_textdomain('wc-blacklist-manager', false, basename(dirname(WC_BLACKLIST_MANAGER_PLUGIN_FILE)) . '/languages/'); } /** * Enqueue necessary assets. * * @param string $hook_suffix The current admin page. */ public function wcb_enqueue_assets($hook_suffix) { $style_ver = '1.0.1'; $script_ver = '1.0.1'; wp_enqueue_style( 'wc-blacklist-style', plugin_dir_url(WC_BLACKLIST_MANAGER_PLUGIN_BASENAME) . 'css/yobm-wc-blacklist-manager-style.css', [], $style_ver ); $plugin_pages = [ 'toplevel_page_wc-blacklist-manager', 'wc-blacklist-manager_page_wc-blacklist-manager-notifications', 'wc-blacklist-manager_page_wc-blacklist-manager-settings' ]; if (in_array($hook_suffix, $plugin_pages)) { wp_enqueue_script( 'wc-blacklist-script', plugin_dir_url(WC_BLACKLIST_MANAGER_PLUGIN_FILE) . 'js/yobm-wc-blacklist-manager.js', ['jquery'], $script_ver, true ); $inline_script = 'var messageTimeout = 3000;'; wp_add_inline_script('wc-blacklist-script', $inline_script); } } /** * Function redirects the user to the WooCommerce Blacklist Manager settings page upon activation of the plugin. */ public function wcb_blacklist_activation_redirect($wcbm_plugin) { if ($wcbm_plugin == WC_BLACKLIST_MANAGER_PLUGIN_BASENAME) { exit(wp_redirect(admin_url('admin.php?page=wc-blacklist-manager-settings'))); } } /** * Display review notice. */ public function wc_blacklist_manager_admin_notice() { $user_id = get_current_user_id(); $activation_time = get_user_meta($user_id, 'wc_blacklist_manager_activation_time', true); $current_time = current_time('timestamp'); if (get_user_meta($user_id, 'wc_blacklist_manager_never_show_again', true) === 'yes') { return; } if (!$activation_time) { update_user_meta($user_id, 'wc_blacklist_manager_activation_time', $current_time); return; } $time_since_activation = $current_time - $activation_time; $days_since_activation = floor($time_since_activation / DAY_IN_SECONDS); if ($days_since_activation >= 7 && (($days_since_activation - 7) % 90 === 0)) { if (get_user_meta($user_id, 'wc_blacklist_manager_notice_dismissed', true) !== 'yes') { echo '<div class="notice notice-info is-dismissible"> <p>Thank you for using WooCommerce Blacklist Manager! Please consider <a href="https://wordpress.org/plugins/wc-blacklist-manager/#reviews" target="_blank">leaving a review</a> <span style="color: #e26f56;">★★★★★</span> to help us improve and grow.</p> <p><a href="#" onclick="dismissForever()">Never show this again</a></p> </div>'; echo '<script type="text/javascript"> function dismissForever() { jQuery.ajax({ url: ajaxurl, type: "POST", data: { action: "never_show_wc_blacklist_manager_notice", }, success: function(response) { jQuery(".notice.notice-info").hide(); } }); } jQuery(document).on("click", ".notice.is-dismissible", function(){ jQuery.ajax({ url: ajaxurl, type: "POST", data: { action: "dismiss_wc_blacklist_manager_notice", } }); }); </script>'; } } } /** * Dismiss review notice via Ajax. */ public function wc_blacklist_manager_dismiss_notice() { $user_id = get_current_user_id(); update_user_meta($user_id, 'wc_blacklist_manager_notice_dismissed', 'yes'); } /** * Set never show review notice again via Ajax. */ public function wc_blacklist_manager_never_show_notice() { $user_id = get_current_user_id(); update_user_meta($user_id, 'wc_blacklist_manager_never_show_again', 'yes'); } /** * Display notice for missing WooCommerce. */ private function wc_blacklist_missing_wc_notice() { ?> <div class="notice notice-warning is-dismissible"> <p><?php echo esc_html__('WooCommerce Blacklist Manager requires WooCommerce to be installed and activated.', 'wc-blacklist-manager'); ?></p> </div> <?php } } new WC_Blacklist_Manager();What new??
/** * Function redirects the user to the WooCommerce Blacklist Manager settings page upon activation of the plugin. */ public function wcb_blacklist_activation_redirect($wcbm_plugin) { if ($wcbm_plugin == WC_BLACKLIST_MANAGER_PLUGIN_BASENAME) { exit(wp_redirect(admin_url('admin.php?page=wc-blacklist-manager-settings'))); } }Please test this solution)
My mod 1.2.1 (maybe you will like my structure of your front.php main file
- Improved protection against attacks by using
[]instead ofarray()and completely redesigned the plugin structure: - Added classes, comments, and organized code.
- Enhanced method for including dependencies to obtain the plugin file or folder path, reducing redundant requests.
- Utilized the new feature in WordPress 6.5: Added support for dependencies that must be installed and activated for the PayPro Global plugin to function, introducing a new “Requires Plugins” header in the plugin header.
- Improved plugin version management:
- The plugin version is now obtained from the plugin header
* Version: x.x.x, facilitating easier version control. - Fixed a bug where the plugin activation notification was not closing or sometimes reappearing.
<?php /** * Plugin Name: WooCommerce Blacklist Manager * Plugin URI: https://wordpress.org/plugins/wc-blacklist-manager * Description: A Blacklist management for WooCommerce. Easily helps store owners to avoid unwanted customers. * Version: 1.2.1 * Author: Yo Ohw * Author URI: https://yoohw.com * License: GPL v2 or later * License URI: https://www.gnu.org/licenses/gpl-3.0.html * Requires at least: 5.2 * Requires PHP: 7.0 * Requires Plugins: woocommerce * Text Domain: wc-blacklist-manager */ if (!defined('ABSPATH')) { exit; } // Get the version from the plugin header comment $wcb_plugin_data = get_file_data(__FILE__, ['Version' => 'Version'], false); $wcb_plugin_version = isset($wcb_plugin_data['Version']) ? $wcb_plugin_data['Version'] : ''; // Define constants define('WC_BLACKLIST_MANAGER_VERSION', $wcb_plugin_version); define('WC_BLACKLIST_MANAGER_PLUGIN_FILE', __FILE__); define('WC_BLACKLIST_MANAGER_PLUGIN_DIR', plugin_dir_path(__FILE__)); class WC_Blacklist_Manager { /** * Constructor. */ public function __construct() { // Check if WooCommerce is active if (!in_array('woocommerce/woocommerce.php', apply_filters('active_plugins', get_option('active_plugins')))) { add_action('admin_notices', [$this, 'wc_blacklist_missing_wc_notice']); return; } add_action('plugins_loaded', [$this, 'load_textdomain']); add_action('admin_enqueue_scripts', [$this, 'wcb_enqueue_assets']); add_action('wp_ajax_dismiss_wc_blacklist_manager_notice', [$this, 'wc_blacklist_manager_dismiss_notice']); add_action('wp_ajax_never_show_wc_blacklist_manager_notice', [$this, 'wc_blacklist_manager_never_show_notice']); add_action('admin_notices', [$this, 'wc_blacklist_activation_notice']); add_action('admin_init', [$this, 'wc_blacklist_dismissal_notice']); // Include dependencies include_once WC_BLACKLIST_MANAGER_PLUGIN_DIR . 'inc/cores/yobm-wc-blacklist-manager-menu.php'; include_once WC_BLACKLIST_MANAGER_PLUGIN_DIR . 'inc/cores/yobm-wc-blacklist-manager-database.php'; include_once WC_BLACKLIST_MANAGER_PLUGIN_DIR . 'inc/backend/yobm-wc-blacklist-manager-button-add-to-blacklist.php'; include_once WC_BLACKLIST_MANAGER_PLUGIN_DIR . 'inc/backend/yobm-wc-blacklist-manager-button-add-to-blocklist.php'; include_once WC_BLACKLIST_MANAGER_PLUGIN_DIR . 'inc/backend/yobm-wc-blacklist-manager-dashboard.php'; include_once WC_BLACKLIST_MANAGER_PLUGIN_DIR . 'inc/backend/yobm-wc-blacklist-manager-notifications.php'; include_once WC_BLACKLIST_MANAGER_PLUGIN_DIR . 'inc/backend/yobm-wc-blacklist-manager-settings.php'; include_once WC_BLACKLIST_MANAGER_PLUGIN_DIR . 'inc/backend/actions/yobm-wc-blacklist-manager-notificaitions-blacklisted-email.php'; include_once WC_BLACKLIST_MANAGER_PLUGIN_DIR . 'inc/backend/actions/yobm-wc-blacklist-manager-settings-blocklisted.php'; include_once WC_BLACKLIST_MANAGER_PLUGIN_DIR . 'inc/backend/actions/yobm-wc-blacklist-manager-settings-ip-blacklisted.php'; include_once WC_BLACKLIST_MANAGER_PLUGIN_DIR . 'inc/backend/actions/yobm-wc-blacklist-manager-settings-domain-blocking.php'; } /** * Load plugin text domain for translations. */ public function load_textdomain() { load_plugin_textdomain('wc-blacklist-manager', false, basename(dirname(WC_BLACKLIST_MANAGER_PLUGIN_FILE)) . '/languages/'); } /** * Enqueue necessary assets. * * @param string $hook_suffix The current admin page. */ public function wcb_enqueue_assets($hook_suffix) { $style_ver = '1.0.1'; $script_ver = '1.0.1'; wp_enqueue_style( 'wc-blacklist-style', plugin_dir_url(WC_BLACKLIST_MANAGER_PLUGIN_FILE) . 'css/yobm-wc-blacklist-manager-style.css', [], $style_ver ); $plugin_pages = [ 'toplevel_page_wc-blacklist-manager', 'wc-blacklist-manager_page_wc-blacklist-manager-notifications', 'wc-blacklist-manager_page_wc-blacklist-manager-settings' ]; if (in_array($hook_suffix, $plugin_pages)) { wp_enqueue_script( 'wc-blacklist-script', plugin_dir_url(WC_BLACKLIST_MANAGER_PLUGIN_FILE) . 'js/yobm-wc-blacklist-manager.js', ['jquery'], $script_ver, true ); $inline_script = 'var messageTimeout = 3000;'; wp_add_inline_script('wc-blacklist-script', $inline_script); } } /** * Check if activation notice is dismissed for the current user. */ public function wc_blacklist_activation_notice() { if (get_transient('wc_blacklist_activation_dismissed') === false) { ?> <div class="notice notice-info is-dismissible"> <p><?php $settings_url = add_query_arg('dismiss_wc_notice', 'true', admin_url('admin.php?page=wc-blacklist-manager-settings')); echo wp_kses_post(sprintf(__('Thank you for activating WooCommerce Blacklist Manager! Please go to <a href="%s">Settings</a> to configure the plugin.', 'wc-blacklist-manager'), esc_url($settings_url))); ?></p> </div> <?php } } /** * Dismiss activation notice for the current user. */ public function wc_blacklist_dismissal_notice() { if (isset($_GET['dismiss_wc_notice']) && $_GET['dismiss_wc_notice'] === 'true') { set_transient('wc_blacklist_activation_dismissed', true, 0); } } /** * Display review notice. */ public function wc_blacklist_manager_admin_notice() { $user_id = get_current_user_id(); $activation_time = get_user_meta($user_id, 'wc_blacklist_manager_activation_time', true); $current_time = current_time('timestamp'); if (get_user_meta($user_id, 'wc_blacklist_manager_never_show_again', true) === 'yes') { return; } if (!$activation_time) { update_user_meta($user_id, 'wc_blacklist_manager_activation_time', $current_time); return; } $time_since_activation = $current_time - $activation_time; $days_since_activation = floor($time_since_activation / DAY_IN_SECONDS); if ($days_since_activation >= 7 && (($days_since_activation - 7) % 90 === 0)) { if (get_user_meta($user_id, 'wc_blacklist_manager_notice_dismissed', true) !== 'yes') { echo '<div class="notice notice-info is-dismissible"> <p>Thank you for using WooCommerce Blacklist Manager! Please consider <a href="https://wordpress.org/plugins/wc-blacklist-manager/#reviews" target="_blank">leaving a review</a> <span style="color: #e26f56;">★★★★★</span> to help us improve and grow.</p> <p><a href="#" onclick="dismissForever()">Never show this again</a></p> </div>'; echo '<script type="text/javascript"> function dismissForever() { jQuery.ajax({ url: ajaxurl, type: "POST", data: { action: "never_show_wc_blacklist_manager_notice", }, success: function(response) { jQuery(".notice.notice-info").hide(); } }); } jQuery(document).on("click", ".notice.is-dismissible", function(){ jQuery.ajax({ url: ajaxurl, type: "POST", data: { action: "dismiss_wc_blacklist_manager_notice", } }); }); </script>'; } } } /** * Dismiss review notice via Ajax. */ public function wc_blacklist_manager_dismiss_notice() { $user_id = get_current_user_id(); update_user_meta($user_id, 'wc_blacklist_manager_notice_dismissed', 'yes'); } /** * Set never show review notice again via Ajax. */ public function wc_blacklist_manager_never_show_notice() { $user_id = get_current_user_id(); update_user_meta($user_id, 'wc_blacklist_manager_never_show_again', 'yes'); } /** * Display notice for missing WooCommerce. */ private function wc_blacklist_missing_wc_notice() { ?> <div class="notice notice-warning is-dismissible"> <p><?php echo esc_html__('WooCommerce Blacklist Manager requires WooCommerce to be installed and activated.', 'wc-blacklist-manager'); ?></p> </div> <?php } } new WC_Blacklist_Manager();ISSUES IN NOTICE:
Need Fix to “Email_address” in the notification “Email_address has been added to the suspected list.” to “Email address” or “Phone_number” etc. This fix is in line 177:
$blacklisted_where_clause = file yobm-wc-blacklist-manager-dashboard.php."So i try do new test code and this look better..
// Check if the plugin has been activated before function wc_blacklist_admin_notices() { /* Check if the activation notice has been dismissed for the current user */ if (get_transient('wc_blacklist_activation_dismissed') !== get_current_user_id()) { ?> <div class="notice notice-warning is-dismissible"> <p> <?php echo sprintf(__('Thank you for activating WooCommerce Blacklist Manager! Please go to <a href="%s">Settings</a> to configure the plugin.', 'wc-blacklist-manager'), admin_url('admin.php?page=wc-blacklist-manager-settings')); ?> </p> </div> <?php /* Set transient to indicate that the activation notice has been shown to the current user */ set_transient('wc_blacklist_activation_dismissed', get_current_user_id(), 0); } } add_action('admin_notices', 'wc_blacklist_admin_notices');Test one/ So it works for me now with WP Rocket + any cache plugins.. But this notice will be shown only once. Plugin reactivation won’t be displayed if it has already been shown. Otherwise, if not tied to the user event after each cache clearing or even without caching plugins at all, this notification will always appear. My solution allows showing this notification only once for the user, after which, once closed, it will not be shown again
- This reply was modified 2 years, 2 months ago by Marcus.
PS. After sometimes this Notice is back(( Maybe you need clear this function and make new.. I dont know //
PS> after update i disable all cache plugins and i cant close this notice “Thank you for activating WooCommerce Blacklist Manager! Please go to Settings to configure the plugin.” – fount issues in code
// Check if the plugin has been activated before function wc_blacklist_plugin_activation_notice() { if (get_transient('wc_blacklist_activation_dismissed') === false) { ?> <div class="notice notice-info is-dismissible"> <p><?php $settings_url = add_query_arg('dismiss_wc_notice', 'true', admin_url('admin.php?page=wc-blacklist-manager-settings')); echo wp_kses_post(sprintf(__('Thank you for activating WooCommerce Blacklist Manager! Please go to <a href="%s">Settings</a> to configure the plugin.', 'wc-blacklist-manager'), esc_url($settings_url))); ?></p> </div> <?php } } function wc_blacklist_notice_dismissal() { if (isset($_GET['dismiss_wc_notice']) && $_GET['dismiss_wc_notice'] === 'true') { set_transient('wc_blacklist_activation_dismissed', true, 0); } } add_action('admin_notices', 'wc_blacklist_plugin_activation_notice'); add_action('admin_init', 'wc_blacklist_notice_dismissal');It seems like the issue might be related to the dismissal of the notice not functioning properly. So its my solution look:
function wc_blacklist_activation_notice() { if (get_transient('wc_blacklist_activation_dismissed') === false) { ?> <div class="notice notice-info is-dismissible"> <p><?php $settings_url = add_query_arg('dismiss_wc_notice', 'true', admin_url('admin.php?page=wc-blacklist-manager-settings')); echo wp_kses_post(sprintf(__('Thank you for activating WooCommerce Blacklist Manager! Please go to <a href="%s">Settings</a> to configure the plugin.', 'wc-blacklist-manager'), esc_url($settings_url))); ?></p> </div> <?php } } function wc_blacklist_dismissal_notice() { if (isset($_GET['dismiss_wc_notice']) && $_GET['dismiss_wc_notice'] === 'true') { set_transient('wc_blacklist_activation_dismissed', true, 0); } } add_action('admin_notices', 'wc_blacklist_activation_notice'); add_action('admin_init', 'wc_blacklist_dismissal_notice');The problem lies in using identical identifiers for the functions
wc_blacklist_plugin_activation_notice()andwc_blacklist_notice_dismissal(). This can lead to conflicts and malfunctions as the functions overwrite each other.To fix this, you need to change the identifiers of these functions. For example, you can change the identifiers to
wc_blacklist_activation_notice()andwc_blacklist_dismissal_notice():- This reply was modified 2 years, 2 months ago by Marcus.
i Update to 1.2.0
but have this issues again
Furthermore, clearing the cache (e.g., Object Cache or WP Rocket) triggers the message “Thank you for activating WooCommerce Blacklist Manager! Please go to Settings to configure the plugin.”

I use
Object Cache 4 everyone
Memcached or disk backend support for the WP Object Cache. Memcached server running and PHP Memcached class needed for better performance. No configuration needed, runs automatically
Version 2.2 | By fpuenteonline | View details | Flush cache
Memcached Server running:
127.0.0.1:11211
Cache Hit Ratio92.71%
Uptime:22 D 15 H 7 M 27 S
Current Unique Items / Total Items:2143 / 11916768Thanks for support)
Forum: Plugins
In reply to: [WooCommerce] Have a issues withGood afternoon.
I solved the problem by identifying a conflict between my plugin scripts and WooCommerce. My script was globally affecting fields. I simply rewrote the code of my plugin, thus localizing the impact of my script, and now it works only for the fields of my plugin rather than globally.
function updateSelect2() { $('.selector_container').select2({ placeholder: "Choose logos for payment methods", closeOnSelect: false, width: "50%", templateResult: function(result) { if(result.selected) { return null; // Return null to hide the selected element } return $('<span>' + result.text + '</span>'); } }); let searchField = $('.select2-search__field'); if (searchField.length) { searchField.hide(); } } // Initialize Select2 updateSelect2();The essence is that my script was specifically affecting the modification of fields in the plugin I was developing, and its operation was impacting all select2 fields globally. I simply rewrote my script, and now it works only with my selector (plugin) and does not extend beyond the plugin’s scope, avoiding conflicts with WooCommerce.
Forum: Plugins
In reply to: [Complianz - GDPR/CCPA Cookie Consent] Export – ImportSo what me do with my JSON ?? When he not transfer all settings to PRO from FREE.. How i can import json to free? Please add this functions to future update. You must give client for free import functions from Localhost to Website. Maybe only for 1 site and if more its my be paid how pro version.
What do u think?
Forum: Plugins
In reply to: [Complianz - GDPR/CCPA Cookie Consent] Transfer settings from free to PROHello.
It’s not surprising that my question was completely ignored, and overall, if you are using the FREE version and have urgent questions, they are also ignored. I downloaded this “Wonder” plugin to my local PC, configured it properly, and thoroughly tested it. I decided to export the settings for free, and then it turned out that importing them is paid. I asked the developers here how to transfer settings, but they ignored me. Well, I thought, okay. I didn’t keep a table in the database to transfer, only the export file remained, and since they didn’t respond and I became curious if it’s worth the money. But it turns out, my friend has a PRO version, and as long as they respond, today we decided to import the settings, and what do you think? Nothing, it practically doesn’t transfer anything, and the plugin in management is completely different, so it only transferred colors, and buttons of agreement, etc., didn’t transfer at all. Agreement pages, Privacy, nothing transferred, and all of this needs to be added manually again. So, I think your question is more of a statement and an answer. They were reluctant to give people free import and export, and when people buy the paid plugin, they become victims of deception like you did. They lure with export, and when a person has no way out, they are forced to buy their plugin. Investigating their code of the free plugin, this plugin in the import zone does not have functionality at all. The button is simply blocked as disabled. Remove this value, and it becomes active immediately, and the settings are not imported because this plugin does not have an import function, and in the paid version, it simply does not take these settings from the free one.
ITS my topic
https://wordpress.org/support/topic/export-import-66/#new-topic-0
Forum: Plugins
In reply to: [XML Sitemap Generator for Google] Have a issues in Google ReportI fix think this is problem in my Server/ Sorry
Forum: Plugins
In reply to: [WPS Hide Login] I cant hide notice after update to 1.9.12Will wait that ) Thanks
- Improved protection against attacks by using