Skip to main content

All Questions

Filter by
Sorted by
Tagged with
1 vote
0 answers
61 views

Show function to super admin

How do I limit information being applied only to Network Administrators? TL;DR; I am building a multisite for a City Council where every member will have its own subdomain. In one of the plugins, I ...
Alvaro Gilabert's user avatar
3 votes
2 answers
1k views

How to assign user a role if none is present when logging in

I currently have a front end part of a WP site that allows admins to create new users and assign then user roles from a drop down - that works perfectly. However, I am using a plugin to also ...
markb's user avatar
  • 299
0 votes
2 answers
935 views

How To Add Code To WP Without Plugin or Functions

I know this is going to be a little strange because it's seemingly counter-intuitive. How do I add code to my WP multisite without adding a new plugin, and keeping it out of functions.php? Purpose: ...
CodeMilitant's user avatar
0 votes
1 answer
212 views

How to Call Function From Separate WordPress Install on Same Server?

Is there a way to call functions from a default location for multiple installed sites on the same server? For example: \public_html\functions\global_functions.php has the shared functions for all ...
Jeronimo's user avatar
1 vote
2 answers
40 views

How to add class in plugin only for network site?

I created an input field in general - settings. It's in a plugin for a for a local ngo network site. It looks like this, and it works great. $ngob_sitelist_slug = new ngob_sitelist_slug(); class ...
George Bredberg's user avatar
3 votes
2 answers
5k views

Display All Non-Used Plugins

My company currently has a multisite of about 20 sites, and growing every day. We're trying to go through the plugins and set standards. IE, forms use plugin X. However, we have not found a single way ...
Marc Palmer's user avatar
0 votes
1 answer
120 views

Trying to output a "Most visited blogs" list in wordpress multisite

Does anyone know how to get a "most visited" list out of Wordpress Multisite? I got alot of bloggers and have been looking for a way to output a top 10/20 list of most visited blogs, but cant find ...
Demilio's user avatar
  • 883
3 votes
1 answer
3k 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 ...
PrivateUser's user avatar
  • 3,469