thecreator01
Forum Replies Created
-
<?php
add_action( 'forminator_activate_user', 'wpmudev_remove_user_main_site', 10, 2 );
function wpmudev_remove_user_main_site( $user_id, $signup_meta ) {
$data = Forminator_CForm_Front_Action::$prepared_data;
if ( 1043 !== intval( $data['form_id'] ) ) {
return;
}
remove_user_from_blog( $user_id );
}Hello, thank you very much for your help. This code worked as I wanted. @wpmudevsupport16
But when I tried the user registration email mu-plugin there was no change. I think we are configuring the wrong email. The email I want to customize is the “Account activated” email sent to the user when we confirm a user registration in forminator.
Example email;
Dear xxx,
Your account on Mainsite has been activated! Please find your login details below.
Login page: https://exapmle.com/login
Username: xxx
Password: Use the password that you submitted when registering your account, or set a new password at the link below.
https://example.com/login?action=rp&key=Yv8fFAjug0BzGfXSfa&login=xxxHello, thank you very much for your help. @wpmudevsupport16
I will try the Mu plugin and I am looking forward to your message about member registration. Because adding the member to both the main site and the network causes some problems.
However, for example, when site registration is enabled and a member registration is confirmed, the site is created and the user is simply added to the network. However, when site registration is disabled, users who do not have a site should only be added to the network.
Thanks again.
- This reply was modified 2 years ago by thecreator01.
Forum: Plugins
In reply to: [WooCommerce] WooCommerce WP Cron and scheduled actionsDo you mind clarifying this for us?
What exactly do you want to configure? Do you want help setting wp-cron? Or something else?Hello, sorry for the late response. @shameemreza @carolm29
Since I actually manage customers’ woocommerce stores on WordPress multisite, I’m worried about scheduled actions and wp-cron using excessive server resources, and I thought it would be a good idea to disable them for features that aren’t used frequently, but I don’t want to prevent WordPress from working properly either. .
For example, if Wp cron is disabled, what will not work in Woocommerce and WordPress? What features? How many scheduled actions are there in Woocommerce? So it would be good to learn which actions work for what.
Hello, thank you for your response, but I really couldn’t find this option in the settings tab. (Screenshot attached.) https://prnt.sc/onvS2BEF_Qf3
Also, does the beehive plugin need to be enabled network-wide for subsite users to see their stats?
Forum: Plugins
In reply to: [WooCommerce] WooCommerce WP Cron and scheduled actionsHello, thank you for your detailed answer. @shameemreza
For example, if wp-cron and scheduled actions are disabled, won’t an email be sent to the administrator’s address when an order is created? Or do these only apply to planned actions?
Also how can we configure these at the server level? Is there a tutorial for this?
Hello, thank you for your reply. @wpmudevsupport14
Google analytics code works on all subsites, but I cannot correctly view the traffic to subsites in beehive statistics.
If I enable Beehive on all subsites, each user can add their own google analytics code, but for example, users can also set some roles on the Permissions page in the settings, and network administrator is also included. Shouldn’t subsite users have these permissions?
Forum: Networking WordPress
In reply to: Changing the domain name for subsite usersHello, thank you for your reply and yes, I would like to learn more about multisite domain mapping. @royjemee
Forum: Networking WordPress
In reply to: Custom domain name (domain mapping) for subsiteHello, thank you for your response @gappiah
Please help me understand better. In the alias domain method, we first update the domain name of the subsite (example.com) from the network administrator, create a pseudonym domain in cpanel, and add an A record in the example.com DNS zone. This way the subsite is now published under the example.com domain.
So when we do this with the CNAME method, do we not add example.com in cpanel in any way? So do we update the subdomain’s domain name from the network administrator and define a CNAME for example.com in the main site’s DNS zone? Did I understand this correctly?
Forum: Networking WordPress
In reply to: Subsite default settings@gappiah Hello, thank you very much for your response and this plugin is really useful but it is a copy process and the default settings should work automatically when a user registers. I think we can only clone from the admin panel with the NS cloner plugin.
Forum: Plugins
In reply to: [WooCommerce] WooCommerce crons, scheduled actions and logsThank you very much for your reply. @doublezed2
I’m glad that WooCommerce automatically cleans up logs and records that are no longer needed. So, are there transactions in the database or application for Woocommerce that we need to clean up regularly? Or any tool/plugin for this? (Regarding the tables I mentioned in the topic or any table)
I’m actually creating a very simple e-commerce site and I don’t need many features. I will just add products and sell. But when I reach hundreds of thousands of users and sales, I really don’t want to deal with database and performance issues. I think Woocommerce is a lightweight plugin, but I still have similar concerns and wanted to ask you about them.
Forum: Networking WordPress
In reply to: Resource usage of subsitesThank you very much for your suggestion. @threadi
I will research and try Zabbix and other monitoring tools. In fact, as I mentioned, my only purpose is to find out which subsites cause an increase in resource usage on the server. For this, it is necessary to find out which subsites and pages use how much CPU, RAM and traffic.
Which metrics of subsites do you monitor for such problems? So, what really matters is the CPU, RAM and traffic (bandwidth) used by the subsites, right?
Forum: Networking WordPress
In reply to: Resource usage of subsitesThe processes and their resource usage should be listed there, as well as the request that caused the process (i.e. the URL and therefore the page called up).
Is there a tool where I can track statistics like this? @threadi
Forum: Plugins
In reply to: [WooCommerce] Empty order recordsHello, thank you very much for your help @doublezed2
Forum: Networking WordPress
In reply to: Resource usage of subsitesHello, thank you for your response. @threadi
Of course, server-side monitoring is also required. However, it may be useful to learn which subsites and users may cause an increase in resource usage.
Forum: Plugins
In reply to: [WooCommerce] Empty order recordsHello, thank you for your response. @carolm29
In which table are empty customer order records created? Which analysis tables?
Yes, this may contribute to abandoned data, but let’s also consider that a malicious user or bot can make tens of thousands of transactions this way. This creates a huge load on the database and server. Actually, I think this is also a security issue. Am I thinking wrong?
Also, I’m curious about this. Does Woocommerce analysis data create a different record in the database? Or is it just reading existing data? (When controlled from the admin panel)