Jeremy Felt

Open source student.

Posts

For things with titles.

Follow via RSS

Add users from one site to another on multisite by role with WP-CLI

Today I wanted to make sure a bunch of editors from one site existed as editors of a new staging site that we’re building out. Both sites exist as part of the same multisite network. Thanks to WP-CLI and xargs, this is pretty straight forward: wp user list --role=editor --url=prod.site.edu --field=user_login | xargs -n1 -I […]

Flushing rewrite rules in WordPress multisite for fun and profit

Developing plugins and introducing new rewrite rules for features on single site installations of WordPress is pretty straight forward. Via register_activation_hook(), you’re able to setup a task that fires flush_rewrite_rules() and you can safely assume job well done. But for multisite? A series of bad choices awaits. Everything seems normal. The activation hook fires and even […]

A Method for Managing Mixed HTTP/HTTPS Sites in Multisite

This is a brief rundown of the method we’re currently using at WSU to manage mixed HTTP/HTTPS configurations in a multi-network WordPress setup. Our assumptions: Sites that are HTTP (HTTPS optional) on the front end should be forced HTTPS in any admin area. Some sites should be forced HTTPS everywhere. This may be because of […]

Routing URL Requests to Sites in WordPress Core

I’ve been thinking a lot over the last many months on how to approach the use of varying URL structures in a single multisite installation of WordPress. Another conversation on Twitter tonight reminded me there are quite a few developers out there itching to improve the process. I’m going to attempt to convey my current […]

Jeremy's profile photo: a selfie taken while walking through Berlin.

Jeremy Felt wrote this and published it on the internet.

Unless otherwise expressly stated, the content above is licensed under a CC BY-SA 4.0 International License.