2
votes
0answers
33 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
0answers
35 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
0answers
16 views

Allow Authors to add category in Multisite Inatllation [duplicate]

I am looking for a way, to allow authors, to add categories. Refering to this post: How would I increase the Author Role to be able to add a new category? I tried this function: function ...
0
votes
1answer
38 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
170 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
68 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 ...
3
votes
1answer
71 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
101 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 ...
1
vote
2answers
74 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
111 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
51 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
76 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
163 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
170 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
229 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
297 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
94 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
112 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
90 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). ...
4
votes
2answers
2k 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
236 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
114 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
57 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
220 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
179 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
214 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 ...
4
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
776 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
480 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?
1
vote
4answers
990 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
411 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 ...