Add .php to end of all WordPress Pages (multisite)
Add .php to end of all WordPress Pages (multisite)
Add .php to end of all WordPress Pages (multisite)
Somehow the username in the signups table were different than the one created. I don’t know if its because the user tried to register twice a few weeks apart without activating or what, but I just changed the username in the signups table to match what already existed in the wp_users table and the activation … Read more
You should use get_current_blog_id() if you need just the id and get_blog_details() if you need more fields. Be aware that get_current_site in fact gives you information about the network of sites in a WP_Network object. Yeah, the name is kind of confusing, as noted in the Codex but not yet on developer docs: Note: get_current_site() … Read more
User not staying logged into one of sub sites in multisite after SSL
Let user publish posts on community page
I’am not absolutely sure what you mean but probably something like this may help you: if( $_SERVER[ ‘SERVER_NAME’ ] == ‘website1.com’ ): header( ‘Location: https://www.example.com/w1’ ); exit; elseif( $_SERVER[ ‘SERVER_NAME’ ] == ‘website2.com’ ): header( ‘Location: https://www.example.com/w2’ ); exit; endif;
I was able to find the file responsible for building the URL placed in the header: wp-content/plugins/domain-mapping/classes/Domainmap/Module/Cdsso.php I was able to update line# 391 and statically set the protocol to HTTPS which for my use case works. Obliviously we would want to check if SSL is being forced or if the current URL is https … Read more
I didn’t find an answer on here. But on the net, it’s in German. I thought I share it here, because it is a neat solution. As suggested I added below cookie constants to the wp-config.php. define( ‘ADMIN_COOKIE_PATH’, “https://wordpress.stackexchange.com/” ); define( ‘COOKIEPATH’, ” ); define( ‘SITECOOKIEPATH’, ” ); And replaced the content of the .htaccess … Read more
Multisite and the JSON REST API: How to?
So, as a word of warning, WooCommerce doesn’t officially support multisites that draw from the same product database. Some (a lot) of extensions won’t work correctly, so just a heads up on that aspect. It sounds like a good workaround would be to install the five sites separately, and have them all connect to the … Read more