Add New Sub Site from the WordPress back end then in sub site options table option_value must be with https
You Can try force SSL with any 3rd part plugin or hardcoded in wp-config https://wordpress.org/plugins/really-simple-ssl/
You Can try force SSL with any 3rd part plugin or hardcoded in wp-config https://wordpress.org/plugins/really-simple-ssl/
Short answer is NO. That is an ugly hack =) More global variables are affect than the ones that you are var_dump’ing. Here are the globals that I found affected: $wpdb, $wp_roles, $wp_object_cache, $global_groups, $GLOBALS[‘_wp_switched_stack’], $GLOBALS[‘blog_id’], and $GLOBALS[‘table_prefix’]. There could be more. I found that $wpdb was another major variable that was altered by switch_to_blog(). … Read more
You can try to replace: ORDER BY registered DESC with: ORDER BY domain ASC, path ASC to get the sites in an alphabetical order.
We also covered this in the wordpress.org forums. 🙂 the answer is no. Our sugestion was to make the main site a landing page and set up each year on their subdomains, just like the WordCamp.org site does now. “archiving” a site in multisite basically shuts it down. (See Network Admin -> Sites) so that’s … Read more
You’ll need to tie into template_redirect hook where you will check the site and the user and then redirect if needed. function redirect_to_subsite() { if( is_main_site() && !current_user_can(‘manage_network’) ) { $blog_id = 5; // <<—– Update the ID to the subsite blog ID you want to redirect to wp_redirect( get_site_url( $blog_id ) ); exit(); } … Read more
I had to write a little plugin to bypass the check – free to download and use. <?php /** * Plugin Name: Upgrade SSL Bypass * Description: The DB-Upgrade process for networks does not work if there’s an error with your SSL certificate. This plugin bypasses the check by disabling the verification in case of … Read more
You could hook into ‘pre_comment_approved’ and change its return value. Sample code, not tested: add_filter( ‘pre_comment_approved’, ‘wpse47172_approve_logged_in_users’ ); function wpse47172_approve_logged_in_users( $approved ) { return is_user_logged_in() ? 1 : $approved; }
WordPress can use subdomains only if they are linked to the same directory as the WordPress installation. Wrong – wp/ // WP installation – subdomains/ // wildcard subdomains Correct – wp/ // WP installation & wildcard subdomains
You’ve got some issues in your underlying objective … For example, I have a filed called 40c.jpg located at localhost/files/2011/07/40c.jpg OK, this makes sense and is where the image should be in the first place. I want the file to show up only when called by HTML on the local domain (here: localhost). So not … Read more
John James Jacoby, Lead developer of BuddyPress said this. BuddyPress sits on top of an entire WordPress installation, regardless of configuration. That means on single-site, multi-site, or multi-network installations, BuddyPress only has 1 set of data tables. As a result, you only have 1 set of Groups, Activity, Private Messages, Profiles, and Friends, even if … Read more