Getting the customer order notes for a WooCommerce order

For the WooCommerce Moneybird plugin I recently needed to retrieve the customer order notes which a user can add during the checkout procedure. This seems simple: there is a function “get_customer_order_notes()”.¬† Strangely this function does not return the order notes at all. An empty array is returned. This function seems to look into the comments, […]

How to install your Ultimate Member add-on

Installing and activating your Ultimate Member add-on can be done in a number of simple steps. Installing the plugin and activating the license can be done as follows: download the zipped plugin via the link in the purchase receipt e-mail. Alternatively, log-in to your account page and download the zip file from there. Go to […]

Ultimate Member 2.0 compatibility

Ultimate Member 2.0 is coming, and there are breaking changes. We have now tested all our plugins with UM2.0, and made additions where necessary. In most cases the changes are limited to the way the settings are handled. If you have upgraded Ultimate Member you will notice the settings pages have changed. As a developer, […]

Ultimate Member keep me signed in option not possible to disable

If you use Ultimate Member, you might have come across the issue that it’s not possible to disable the “keep me signed in” checkbox, when on the login page. This is caused by the validation javascript in Ultimate Member, located in um-conditional.js. From each um-field class element, the data attribute “key” is retrieved. But this […]

Retrieving the license status for a key in Easy Digital Downloads

As a user of Easy Digital Downloads software licensing, I was looking for a way to retrieve the Easy Digital Downloads license status. I use this to determine the license status on submit of the support form of the EDD websites. Though I might have missed something, there doesn’t seem to be a direct way […]

Prevent cross site authentication for logged in users on WordPress multisite

I’m working currently on an application that depends partly on the domains to authenticate the users: several users can¬†belong to an account, and the application can check if you’r connected to this account by retrieving the domain that is used for the log in. WordPress Multisite is very suited for such a purpose. There’s only […]

Easy Digital Downloads MoneyBird 1.0.7

In the latest release of Easy Digital Downloads MoneyBird, EDD MoneyBird in short, we have added several cool new features: Support for periods in MoneyBird If you use EDD recurring, the synchonised invoices will now have the corresponding periods added. Support for the EDD VAT EU: VAT number and VAT company will be synchronised as […]

Sending a password reset link for PHP added WordPress users

Sometimes you need to create users in WordPress with PHP code, be it because you’re importing users, or because you want to let one user add other users. When you do this you want the new users to be able to reset their password. At first I thougth to use a password reset link, to […]

Search users on username, email address, firstname and lastname

If you want to do a search in your WordPress users, or in Ultimate Member members, (which amounts to the same thing), you would think this can be easily done with a meta_query, or with the search query functionality that is built in into WordPress. This is not the case! When creating some code doing […]

Exclude pages from caching based on post type

To improve site speed for a website I often use WP Rocket: I think it’s one of the fastest caching plugins for WordPress. When a page is being cached, it’s actually saved in a separate folder as a html file. This way, the website doesn’t have to create the page from the php code: there’s […]