Background Today my third WordPress plugin has been approved and added to the WordPress Plugins directory. A usual action after your plugin submission has been approved, is to push the code to the WordPress SVN repository. I must confess that I was never able to memorize all the commands and steps...
How to set up a local WordPress development server with phpMyAdmin using Docker
In a previous post I described how to set up a local WordPress dev server with an Adminer web app to control the Mysql database. I have been using that setup for quite some time now. Despite being very lightweight, I feel Adminer is very limited. In addition, I didn’t really get used to it...
How to order posts in Avada Post cards element by a custom field
Context In a previous post, I wrote about customizing the Avada Post Cards element to fetch posts from the database based on a custom field value. It’s good to mention it once more that this feature was added to Avada later on, and it’s now shipped by default in all new versions of...
How to set up a local WordPress development server using Docker
The following docker-compose.yml file setups a local WordPress docker instance alongside a MySql server and an Adminer web app which can be used as an alternative to PhpMyAdmin. version: '3.9' services: wp_mysql: image: mysql:latest container_name: wp_mysql command: mysqld --character-set...
How to let Avada Post Cards element fetch posts from the database based on a value of a custom field in the posts
Context In the last couple of months, I have been working on the website of Stichting Civic. Stichting Civic is a Dutch foundation committed to improving the Dutch civic integration policy for refugees and other newcomers. The foundation aims at 1) collecting and stimulating socio-scientific and...
How to change the prefix of WordPress database tables using MySql in phpMyAdmin
In this article you will learn how to change the name of all MySql (WordPress) database tables in one shot to save you time and maybe money too :)
How to trigger a specific code after a new product is created via WooCommerce REST API
I ran yesterday into a situation where I needed WordPress to perform a specific action after a product is inserted into WooCommerce database using the REST API endpoint POST /wp-json/wc/v3/products I have searched online for a couple of hours and I found multiple solutions, but non of them worked...
How to reduce the size of wp_icl_strings table in my wordpress database
Just like a lot of WordPress users, I use for a client WPML to make the website multilingual. The plugin is a magical plugin, and it enables you to translate everything on your website. To make the translation process more easier for the user, WPML just tracks down every single added string to the...
How to perform SQL queries with WooCommerce?
This post will be updated regularly. This is a work in progress 🙂 DISCLAIMER: Maybe the title is a bit misleading, but this blog post is meant to be as a reference for people just like me who are forced to google everytime how to get a or to manipulate product, product category and all other stuff...
How to solve “http doesn’t redirect to https”
This website is running on VPS from Linode.com . I have configured every single detail about the site, and as you have noticed that the website has only one version with https. I have only peshmerge.io (non-www) version. This morning I have clicked on the link of my website on my twitter profile...