Some systems will give you flat arrays with their children and parent. I worked with Notion API and they do that as well. So in this tutorial, I’ll show a simple recursive function that can work to create a deep array with children and parents arrays.
Read MoreCategory: Quick Tip
How to Hide or Show Content by User Meta
When working on some sites, you might want to hide or show content in your articles based on user meta.
Read MoreInstalling PHP 7.2+ on Mojave 10.14.4
I’ve tried updating my PHP to 7.2 or up on my local Apache server. It did not work at first. I would pause this if I did not work on a project that required the newer PHP Unit. The newer one requires PHP 7.2 or up. These is a short tutorial that will show you how I successfully updated my PHP to 7.2.9.
Read MoreHow to Import Large Databases in Local by Flywheel Sites
Working with clients with WordPress sites can be difficult when you have to migrate their site locally so you can develop on it. If you’re using Local by Flywheel the site is hosted on Flywheel, you will have no problem. If their site is not a big one, you’ll also have no problem using some of the existing solutions such as WP Migrate DB Pro and alike. But what if your site has large databases (read tens of GB), what to do then?
In this tutorial, I’ll show you how to migrate such large databases in Local by Flywheel through SSH.
Automation on Post Publish in WordPress
Automating is something that you’ll eventually need when developing. If you’re building plugins or custom solutions, you’ll want to automate some operations when a content gets published. WordPress offers scheduling of custom post types out of the box. Let’s see how can we hook on that and automate our code.