Multisite network admin – URL / redirect error

network admin_url filter can rewrite network admin url. But i don’t know it is a best way or not. // wp-config.php /** Sets up WordPress vars and included files. */ require_once(ABSPATH . ‘wp-settings.php’); // add code // define(‘__WORDPRESS_CORE_DIR__’, ‘/wordpress’); add_filter(‘network_admin_url’, ‘rewrite_my_network_admin_url’, 10, 2); function rewrite_my_network_admin_url($url, $path) { $networkPath = str_replace( ‘/wp-admin/’, __WORDPRESS_CORE_DIR__ . ‘/wp-admin/’, $url … Read more

wp-admin redirect loop with ssl

you’d be better not using a plugin and editing the .htaccess file (in root of website) something like this at the top: RewriteEngine On RewriteCond %{HTTP_HOST} ^somesite.com [NC] RewriteRule ^(.*)$ https://www.somesite.com/$1 [L,R=301] so your .htaccess file might look something like this: RewriteEngine On RewriteCond %{HTTP_HOST} ^somesite.com [NC] RewriteRule ^(.*)$ https://www.somesite.com/$1 [L,R=301] # BEGIN WordPress <IfModule … Read more

How to add edit users capability to a custom role?

In the particular case that you were working on a multisite installation. Did you try to also add the ‘manage_network_users’ capability? function edit_shop_manager() { // Get custom role $shop_manager = get_role(‘shop_manager’); $shop_manager->add_cap(‘create_users’); $shop_manager->add_cap(‘edit_users’); $shop_manager->add_cap(‘manage_network_users’); $shop_manager->add_cap(‘delete_users’); $shop_manager->add_cap(‘list_users’); $shop_manager->add_cap(‘remove_users’); $shop_manager->add_cap(‘promote_users’); } add_action( ‘init’, ‘edit_shop_manager’ );

Multisite Global Custom Posts

In case anyone comes across this question in the future, I found a plugin that does everything I want. The plugin is Multisite Post Duplicator which is a free plugin available in the WordPress plugin directory. Below are some of the plugin features. Features: Copies all custom fields Copies all related post meta Includes any … Read more