WordPress – Page 3

How to Check if Plugin is Active in Multisite Network

When it comes to plugins installed on WordPress Multisite network, some of them can be activated either for the whole network or for a specific site of the network only.

Network activated plugin:

network activated plugins within a WordPress multisite network
When you “Network activate” a plugin, it will be automatically active for every site in your network. Yes, it sounds obvious, but just in case.

The same plugin is activated site-specific:

Site-specific plugin activation in WordPress Multisite

It shouldn’t be a problem to understand how it works, the problems could appear when we try to check whether a plugin is network or site-specifically activated in the code.

There are multiple ways to do that and each of them is quite different.

Sync Mailchimp Audience Members Updates to WordPress

In this tutorial I am going to show how you can sync any member preferences updates in Mailchimp audiences to WordPress users.

Sometimes I’m getting asked to add this functionality to my Simple Mailchimp Sync plugin, but every time I’m starting writing the code, I always come to a conclusion that the plugin will become “not simple” at all. So now it is possible only with a free add-on (or you can use code examples below for sure). Everything we need is just a little bit of configuration in Mailchimp account and a small code snippet.

How to Improve WP Cron Performance

Recently I got some requests from the client who uses my Simple Inventory Sync plugin, and the request was about its “full resync tool”.

The thing is that full resync is using WP Cron to sync product inventory because it is a more seemless solution and sutable for a large stores (with an AJAX approach you can not refresh the tool page and forget about it). But this tool has a limit of HTTP requests per cron job, let’s say 5, so no page overload happen. And even when everything is coded with batch requests, sometimes the client could have tons of products with tons of variations for each for them – in that case the resync will take some time anyway.

The issue is when you have scheduled 1 cron job every minute, but your website has 1 visitor every hour, then guess what – WP Cron will run every hour.

Luckily it is possible to fix if you deactivate WordPress standard cron and just run it from the server.

Let’s do it now.

Manage Custom Taxonomy Terms with REST API

In this tutorial I would like to guide you how you can create WordPress REST API requests in order to manage custom taxonomy terms. And also I’d like to show you some interesting examples along the way.

The idea of this article actually came to my mind when I was developing an add-on for my Simple WordPress Crossposting plugin.

Include Meta Data When Updating Users via REST API

In my another tutorial about syncing users using WordPress REST API I received a question in comments, where I was asked about metadata. After googling for quite a bit I found out that there is no clear explanation out there about using user’s meta in REST API requests.

Generate WordPress Users from Mailchimp Audience Members

Since there is Simple Mailchimp Sync plugin on my site that allows to automatically subscribe WordPress users to Mailchimp audiences, from time to time I receive a question – is it possible to do the opposite? To connect Mailchimp list to a WordPress website somehow and create users from the emails?

Something like this:

create WordPress users from Mailchimp list members

The answer is yes for sure and in this tutorial let’s figure it out how to do that.

Get Post with Featured Image URL in REST API

I noticed that when people read my post about uploading a featured image via WordPress REST API, they are also searching how to get a post with its featured image URL.

So I decided to say a couple words about it.