Open “Visit site” in a new window?

This should do it (put it in a network activated plugin): add_filter( ‘myblogs_blog_actions’, ‘my_sites_visit_site_target_blank’, 10, 2 ); function my_sites_visit_site_target_blank( $actions, $user_blog ) { $to_replace = “>” . __( ‘Visit’ ) . ‘</a>’; $to_replace_with = ” target=”_blank” >” . __( ‘Visit’ ) . ‘</a>’; return str_replace( $to_replace, $to_replace_with, $actions ); }

How to organize my js files

Generally speaking, combining all of the global scripts will boost performance, but so will enqueueing JS selectively – meaning if a script is only used on one CPT or template, you should only enqueue it there. Look into conditionally enqueueing JS in your functions.php. You can target specific sites by blog_id and target specific post … Read more

How do I get the Payzone WooCommerce payment gateway plugin to show up in the settings? [closed]

As Rustom mentioned, the plugin isn’t checking if this Multisite is activated – you can add a check in for multisite, add the below in the plugin registration file, just below the existing active check functions. if(!function_exists(‘is_plugin_active_for_network’)){ require_once(ABSPATH .’/wp-admin/includes/plugin.php’); if(is_multisite() && is_plugin_active_for_network(‘woocommerce/woocommerce.php’)){//check if multisite and check /** add in the functions from inside the current … Read more

Page Builders and WP Multisite

Take a look at THIS. You can link all your sites to a main site’s dashboard and control a lot of things from one central location. I used MainWP before and thought it was fairly nice. I had each site setup with its own WP install using the same custom theme. I created an options … Read more

Delete user from multisite when removed from subsite

But the trick seems to be when to fire it. This is correct! When remove_user_from_blog fires, the removal has not happened yet, rather it’s about to happen and this is your chance to step in and do things beforehand, e.g. cleanup. The wpmu_delete_user function should be the one to go i guess. Yes, that would … Read more

WordPress multisite – is it possible to have different taxonomies for each site?

Sure, you can. Each site in multisite is completely independent, so you can have completely different CPTs, taxonomies and… everything. The problem is that if you register the CPT via a plugin, and you enable it in all sites (or network-activate it) and you use the same plugin to register taxonomies, you’ll have same taxonomies … Read more