How to clone homepage for multi region site?

How would i clone the homepage of my website ? I understand and have used to plugins that duplicate your page, the difficulty I am having is that I need to create a multi-site from 1 domain. For example, I have mywebsite.com - this targets my usa audience mywebsite.com/es - this would target spanish audience I would really like to know how I would duplicate mywebsite.com and then edit that page and content so that it is in spanis If …
Category: Web

Share user access between two wordpress sites

Can I share user session or cookie between two entirely different websites. I have two websites www.xxx.com and www.yyy.com(different wp installation). While logged user clicks on a link page from website1 could be redirect to website2 post details page. So user should post a comment as user. Is this possible in entirely two different hosted websites ? (Most Preferred) (or) Should I do any modification like multi-site or sub domain installation. Please suggest me your ideas on this feature.
Category: Web

Wordpress returns "The link you followed has expired" error page whenever I add a new site, add a user etc

I have a Wordpress Multisite (subdomains) instance running on a VPS which seems to be working as expected a part from the fact whenever I add a user or add a site a "The link you followed has expired" page is returned and something happens. I use Nginx and php7.2-fpm. Here the config file: server { listen 80; server_name www.domain.name domain.name *.domain.name; return 301 https://www.domain.name$request_uri; } server { listen 443 ssl; server_name domain.name; ssl_certificate /etc/letsencrypt/live/domain.name/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/domain.name/privkey.pem; include /etc/letsencrypt/options-ssl-nginx.conf; # …
Category: Web

How to synchronize user profile fields in multisite?

I'm using wordpress multisite. I installed Multisite user management plugin. If a user register in my main sites then that user automatically added in all my sites. My problem it doesn't copy the profile datas. I don't want my users to fill the same data in all 50 sites. So is there any code available to sync the datas? I mean if a user fill the profile fields in main sites all sub sites should be updated with the same …
Category: Web

Automatically add a registered user on the wordpress multisite network even to just one other site

I've been searching for a while on the net but with no luck, how can I automatically register the user who registers to the network directly also in the site example.com/account/? There are 3 sites installed in my WordPress multisite: example.com/ example.com/account/ example.com/go/ How can I automatically register the user only on the account site?
Category: Web

Add menu items/actions for multisite users who are registered on the network but do not have a role or capability in any sites

We've built a custom application (Pressbooks) that sits on top of WordPress multisite and transforms the multisite into a CMS for book publishing. A frequent flow for super admins is to invite a new user onto the network without adding them to a specific site. Let's call these users 'lowly users' because they're registered on the network but don't have a role in any of the network sites. Typically, our multisite users should be able to create new sites (book) …
Category: Web

Add the site's name as prefix when adding new users? Multisite

I have a multisite network, where the admins of each site are able to add users to their site. My problem is that if they select the same username it will not work. So I am thinking if it is possible to save the Username field with a prefix. Say the admin adds a user called johndoe to a site called mysite then the user should be saved as mysite-johndoe. Would this be possible to achieve? I am talking about …
Category: Web

How do I remove/delete an old super admin user?

I have googled this on the web and also searched for the answer on StackExchange but I can't find a clear set of instructions for removing and deleting a super admin user! I'm performing some admin tasks on a multisite with 100+ sites and need to remove/clean up some old developer accounts within the dashboard. I go to network > users and see a list of super admin and cannot remove any of them. I can disable their accounts (which …
Category: Web

Can you have multi-site WP and keep users separate?

I'm aware that multi-site exists but I've never used it. Could I use it in a type of reseller mode, where I ran one install of WordPress but provided completely separate sites for separate users? Such that the users didn't even know the other sites existed, they just saw their site? Every time I search I keep finding articles about the opposite: letting users work across multiple sites, not keeping them inside one site.
Category: Web

How do I use different domain for subdomains in WP Multisite?

I have a WordPress Multisite network. I'd like to have my main site on a seperate domain to my subdomains. What I mean by this is, for example, mymainsite.com on the main site, but my subdomains are based off another domain, subdomains.com, such as example1.subdomains.com, example2.subdomains.com, and so on. I've read about domain mapping, and I know that you can make subdomains then change Site URL to match, but I require that WordPress does this automatically so that when users …
Category: Web

Get first_name and last_name on user_register hook

I have multisite running with 4 sites. One of them has woocommerce. Customers have option to create account while checkout. I have custom analytics where registered customers are labeled with wordpress user ID (get_current_user_id()). Customers without account have default ID of 0. My analytics allow me to add first name, last name, email etc... to customer according to his ID. I would like to add this information right after they make account. I used user_register hook to do this job …
Category: Web

Easily adding multiple existing users to a multisite site

I manage a multisite network for a school. The sites are private (password protected), but users within the network should be allowed to access other sites as subscribers. (i.e. all students in a class should have subscriber access to the site of their classmates). When you create a new site or new user, by default only the site admin has access to his site, other users are not added. You have to manually add other users as subscribers. This is …
Category: Web

User registration on subsite in multisite configuration

As a network admin in multisite configuration, I have the option to enable or disable the user registration \ site registration. is there any way i can enable the user registration on s single sub site , not on all sites. In my WP setup, I have a main blog which is managed by me and I dont want user to register here. i have a another blog installed on sub directory dedicated for forum. I would like to enable …
Category: Web

Separate user bases or hide users of another role or connected to another minisite

I am creating a WordPress site in which I want to create mini-sites/sub-sites meaning each of them has their own separate user base. Alternatively, it's ok that all the users are in the same base, but that users that are not in the same role, group or those connected to a subsite are hidden. This could be done either with a plugin or that I create a PHP function. I have looked through many plugins. WordPress multisite have a shared …
Category: Web

Allowing users to manually add or remove themselves to/from WordPress multisite blogs

I am trying out WordPress multisite and have set it up so that the main site on the network allows users to register. From my (beginner level) understanding of how WordPress multisite works: a user registered on the main site is allowed to view all network content unless it is protected. There is only one user table in the database shared by the network. But users don't have a "role" in sub-sites unless it is explicitly given to them in …
Category: Web

Add custom fields in the new and edit the site forms without touching the WP core

I am working on a custom plugin to add some extra fields in each forms of user and site. Therefore, I need to add few custom fields in the both new/edit site and user forms. Just to know if there is a way to add custom fields when I create or edit the site and users through Network admin panel without touching the WP core.
Category: Web

Multisite User Sync Question about blog authorship

I used to have a single wordpress site with a buddypress section (logged out visitors would see the blog only, but logged in users would see the buddypress area). I realised this was ineffective so i converted it to a multisite, where my "public" website was the root domain, and my "intranet" was at /team subdirectory. When I visit the network site admin, I see 190 users. When I visit the public website admin (which was the original site), I …
Category: Web

How keep woocommerce users separeted in multisite install and keep admins on network

I'm trying to use a multisite install to keep a single php and database source but I need to use woocommerce separated in the websites, allowing the sites to have they clients separated at same time that maintain the admins in same network. The only workarround that I found is to maintain a separated users table for each site and keep the admins in core users table than load in cache, creating a "global_users" and "local_users". Anybody know some other …
Category: Web

Preferred method of setting user role only works on Main Site in Network

I'm working on a multisite installation and I have this function to hook to a WordPress action. The objective is to 'add' user roles to users on the sub-sites as the same user's role changes on the main site. This function - using wp_update_user - changes the desired user's role at sub-sites to the new role and removes other roles they have, but leaves the role on the main site as is: function updateRole_onSubSites( $therole ){ $user_id = wp_get_current_user()->ID; foreach …
Category: Web

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.