Tips & tricks

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
May 27, 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
May 27, 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
May 13, 2021
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 9, 2021
Posted by

Split PHP array in X equal number of elements

In PHP you can divide an array in a unknown number of chunks by specifying the number of element in…
Date
August 20, 2019
Posted by