Now that this site supports Webmentions, I’ve been having some fun digging into how I’d like them to be presented. The theme I’m using is very bare-bones. I created it using Underscores a couple years ago when I decided I had lost touch with the code I was using and for some reason wanted to… Continue reading Working through displaying Webmentions
Category: Code
Variable SSL certificate directives in Nginx
Update, April 28, 2019: Warning: I don’t think that this works. A few days after getting this setup, HTTPS broke on a few of my sites and I had to undo this config. I haven’t had enough time to poke at things, but JJJ pinged me yesterday and said he was having issues to. I… Continue reading Variable SSL certificate directives in Nginx
Things I’m learning while playing with Gutenberg (part I)
I’ve been having fun working heavily with Gutenberg over the last several weeks. As I ran into a couple things, I started tracking them in a draft post so I could work through and publish them later. Here’s the first set. š How to access className from a block’s save() function The classnameĀ attribute is available… Continue reading Things I’m learning while playing with Gutenberg (part I)
Remove an administrator from 58 networks at once with WP-CLI
Ok, so this is super specific and probably won’t come in handy for you. But it’s another example of how quickly you can perform a task using WP-CLI. At WSU, we currently have 58 networks configured in WordPress multisite. Global administrators are users that have been set under the site_adminsĀ option on network 1. Network administrators… Continue reading Remove an administrator from 58 networks at once with WP-CLI
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… Continue reading Add users from one site to another on multisite by role with WP-CLI