wp_parse_args recursive of multidimensional arrays

wp_parse_args is a wonderful function for combining two arrays, objects, or strings in WordPress. But it lacks the possibility to…
Date
August 24, 2021
Posted by

Disable REST API for non-logged users in WordPress

Disable REST API without using a plugin. Add the following code to the functions.php file in your theme or in…
Date
December 1, 2021
Posted by

Disable WordPress XML-RPC in NGINX

Locate your nginx configuration file and add the following rule in there. Save it and reload the nginx service. Now…
Date
December 1, 2021
Posted by

Sending Axios parameters with a POST request in PHP

Using a library like Axios to create complex AJAX requests is simple and easy. Of course, we can use `fetch`…
Date
January 14, 2022
Posted by
easyengine custom.ini max upload limit increase

EasyEngine increase the max upload file size in 10 seconds

If you’re using EasyEngine for your WordPress website then probably you found that the max upload size of a file…
Date
February 22, 2021
Posted by

Programmatically insert taxonomy terms in WordPress

I’ve got this dilemma today. I had to insert all states of America in DB as a taxonomy term. Instead…
Date
February 11, 2021
Posted by

Gutenberg full and wide width inside of a fixed container

Gutenberg, the new editor from WordPress 5+ comes with some handy block options which allow defining full and wide width.…
Date
December 3, 2021
Posted by

Deploy code on VPS with Gihub Actions via rsync

In one of my previous articles, I’ve demonstrated how to deploy code on a VPS server using CircleCI. In this…
Date
January 15, 2022
Posted by

Upgrade all npm packages to the latest major version at once

While this may look like a dangerous idea, it is actually something that many of us wanted to do just…
Date
June 24, 2021
Posted by

Replace PHPStorm terminal with WSL on Windows

In my previous article, I wrote about how to replace the default terminal with Git Bash. It’s easy and at…
Date
January 3, 2022
Posted by