0
votes
1answer
14 views

How to set the default options on an existing plugin in a WP MU new user install

When a new user signs up in WP MU install I would like to set the default options for a plugin that I have installed in the super admin account. I've read through so many posts but have not found out ...
0
votes
2answers
424 views

Is it possible to set up multistore in Woocommerce?

Is it possible to have multistore in WooCommerce? I want to divide my WooCommerce store into 3 distinct stores with the toys showing up in 3 different collection names called: remote cars, ...
1
vote
0answers
33 views

Selectively update themes in WordPress multisite

I have been running a WordPress multisite installation for a few years, and every time WordPress releases an update (from x.y.z to x.y or x.y.z to x.y.z) there is always a chance that one of the ...
0
votes
1answer
36 views

Check if user is in a group of another site within multisite network [closed]

I'm using Woocommerce + the groups plugin on my main site to promote users to a 'Premium' group upon purchasing items which works great. If a user on the main site then browses to the second site ...
4
votes
1answer
83 views

Cron firing my function everytime wp-admin is visited

This is a MU-plugin I'm developing, and I want it to run hourly. Unfortunately, it's running every time I visit any site's wp-admin page. I've used the Debug Bar plugin with the Cron plugin, and it ...
0
votes
0answers
36 views

WP Multisite subfolders; migrating to different servers

I have the latest version WP of 3.6 configured as a multisite with subfolders. We are working in two different environments where one resides at (www.dev) and (www.production). They are both ...
0
votes
1answer
20 views

Active Plugins for current blog in WP Multisite Network? [duplicate]

Simple question but I can't find an answer - how do I find whether the current blog in a multisite network has a given plugin activated (speaking about plugins that are available to all sites on the ...
0
votes
1answer
90 views

How to share user data across multiple Wordpress websites?

i have 3-4 sites which has content about traveling,and what i want is one site(main site content all the user data and) in all other sites, users can log in to the sites with that data ,how can i ...
0
votes
1answer
70 views

Change Admin menu placement using hooks

I have been working in a wordpress multisite installation. Where I am using upPrev plugin that has an option page under Appearance ->> upPrev Now what I need is to move this menu under Settings ->> ...
0
votes
2answers
96 views

how to invoke wordpress API from other existing PHP system

We have our own php system, now we want to have a blog function. Because wordpress are widely used, so we decided to use it. And now I want to invoke wordpress's function , for example wp_insert_user ...
0
votes
0answers
63 views

WP multisite network plugin fails to see classes loaded with spl autoload

I have a home-grown plugin that's a library of various classes/methods. Let's call it my_autoload. In WP single-site I've been using spl autoload to require() the classes as I have other plugins that ...
2
votes
1answer
84 views

Customize multisite site creation with user data

No, I've never made a plugin. But I would like to, or find someone who can work with me on it. What I'm hoping to accomplish is setup presets on site creation. I need my multisite to do this: When ...
1
vote
1answer
99 views

Adding (blog-specific) links to “My Sites” admin page

The My Sites admin page only has links to the sites’ dashboards and production pages which is of limited value. I am trying to figure out a way to add a more useful links to them like New Post, ...
0
votes
1answer
50 views

Is there anything special required to make a plugin work in a multisite environment?

I've been developing plugins for about a year now, but not having any experience with multisite environments, whenever a question comes up that is specific to that environment I'm generally stumped. ...
0
votes
1answer
409 views

How to edit wp-signup.php content using plugin

Hello experts, I nead your help as I got some issue with wp-signup.php page which i try to resolve but i am not able to do it. Issue is as follows, I want to replace the text 'Get your own ...
2
votes
0answers
147 views

Multisite plugin development and wp_enqueue_script

I have a plugin I'm developing. It works fine on a single site version of WordPress. It installs on a multisite version of WordPress, it appears to work on the admin pages, but when the plugin ...
5
votes
1answer
260 views

Uninstall script for a plugin in Multisite

I've just realized that the traditional uninstall.php file along a plugin is not working in Multisite. if ( !defined( 'WP_UNINSTALL_PLUGIN' ) ) exit(); delete_option( 'plugin_option_name' ); ...
5
votes
3answers
252 views

Prevent network activation of plugin

I have a plugin that currently doesn't support network activation. The best fix for this of course is to fix it :) which I plan to do. However I wonder if there is a temporary solution I can use to ...
2
votes
2answers
153 views

Multisite, sharing content by URL

I have a network of two sites, A.example.com and B.example.com. I'd like it so that if I create a page on A with a permalink of /Widgets I can access it on B using the same relative permalink but ...
5
votes
2answers
187 views

What is wrong with using add_option with Multisite instead of add_blog_option in a plugin

I'm working on a new plugin but it's my first to save which will save an option to the database. Currently I'm using add_option and I assumed that - activation would fail or - the wrong value would ...
1
vote
1answer
75 views

Problem with context in multisite - getting main site data in every blog (get_pages())

I'm working on a multisite, everything is configured and works fine from dashboard. Now I'm trying to write a plugin with a PHP file that displays the list of pages created in a site - to be ...
3
votes
2answers
82 views

How do I make specific plugin functionality apply to different sites in a network?

I have a site specific plugin that I've written for the main site in my multisite network. Now I realize that the shortcodes that are in the plugin are also useful on the sub-sites, however the ...
1
vote
1answer
190 views

Plugin menu addition in multisite

$wp_admin_bar->add_menu( array( 'parent' => $menu_id, 'id' => $menu_id . '-example', 'title' => __( 'Example Menu Item', 'example' ), ...
0
votes
3answers
338 views

WordPress network: set themes and plugins for new blog

How can I enable specific themes and plugins for new blogs that have been created with wpmu_create_blog? I'd like to set the themes and plugins in code rather than having a person manually set them in ...
0
votes
1answer
383 views

Filters 'request' and 'parse_query' not firing in sites.php nor link-manager.php

I'm trying to make sortable columns in Sites and Links listings admin pages. /wp-admin/network/sites.php and /wp-admin/link-manager.php The problem is the following filters are not firing up in ...
2
votes
1answer
631 views

What is the function to get plugin base url in multisite?

I'm using this function plugins_url(). But it always echoes main site url even in subsite. So i'm getting ajax errors like Domains, protocols and ports must match. Lets say my main domain name is ...
1
vote
1answer
144 views

How to associate an existing user to a site in a multisite setup programmatically

In a multisite setup, you can associate an existing user in the network to a site. The standard wp_insert_user function doesn't seem to have the proper logic to handle. How would I do this for ...
1
vote
1answer
229 views

Having separate plugins and themes folder for multi-site setup

My multi-site setup uses sub-directory. I am creating one plugin + one theme to customize each of the sites. Is there any way to have separate plugins and themes folder per site like so or something ...
0
votes
1answer
100 views

How to get values from network settings panel?

I'm using wordpress 3.3. I've created a plugin My plugin details: My plugin creates a sub menu under Network settings and create two form fields to define adsense code (200 x 200 ad, 300 x 250 ad). ...
6
votes
2answers
5k views

How do I create a custom role capability?

I wish to create a custom capability for accessing the interface of my plugin. Should the plugin manage adding this capability to all the administrator accounts on activation? If so: Does WordPress ...
0
votes
1answer
574 views

Wordpress multisite,use same cookies across all website?

Hi is this posible to use same custom cookies across all blogs?Can someone help me with this?
0
votes
2answers
174 views

Only allow plugin to be activated on root site of multisite

I'm developing the wordpress file monitor plus plugin. Its purpose is to scan for altered files and it works fine for a single installation of WP. But when you look at multi-site it's not something ...
1
vote
1answer
70 views

How to write a plugin to add users to a mail list

I run a multi-site blog with about 300 sites. I have an idea that I want to write a plugin that in order to add all administrators of blogs to a MailMan mail-list. I just want administrators though, ...
2
votes
1answer
357 views

Plugin Uninstall and Deactivate via Options Menu

I'm creating my first plugin (modifying an existing one for what I need) and although it's working fine i am trying to create a simple options menu to allow either deactivation of the plugin, or ...
2
votes
1answer
214 views

how to activate plugin network-wide, and save setting across sites

I am developing a plugin, which will be used on single site, as well as multi-site. How to make plugin active network-wide, code required. Also, how to save settings network-wide?
2
votes
1answer
258 views

Where should I store global data for my multi-site WordPress plugin?

I wrote a plugin for WordPress which has a few user-configurable settings that are stored using WordPress's suggested method. I know they are saved in the wp_options table, but that is abstracted by ...
5
votes
1answer
2k views

Making my plugin multi-site compatible

I want my plugin to be installed on each blog and create database tables per blog. I have this code: register_activation_hook( __FILE__, 'install1' ); function install1() { global $wpdb; if ...
5
votes
3answers
1k views

Changing Plugin Load Order

I'm writing a plugin, bar, which is dependent on another plugin, foo, being activated, and I need the functions from foo to be available when bar loads. Normally plugins are loaded in alphabetical ...
0
votes
2answers
563 views

What is difference between blog id and site id?

The going through the mu functions source I come across references to two different ids for sub-blogs - site id and blog ids. In what context is each used?
4
votes
4answers
1k views

How to Get a List of Sub Blogs without Using get_blog_list()?

The get_blog_list() function has been deprecated from v3.0. How does one get a list of blogs in a multisite blog?
3
votes
2answers
427 views

Error getting correct blog_id on MU from functions.php

I have script in my functions.php that seeks to locate the media directory of the site in which the theme is installed. This is pretty simple unless the site is an MU site. In that case, the media ...