Tips & tricks

Modify CPT arguments after it was registered

When registering a new custom post type it’s easy to pass the arguments to the register_post_type function directly. It can’t…
Date
November 19, 2021
Posted by

CSS Box Shadow Generator

Generating CSS3 multilayer box-shadow has never been easier. Now with Box Shadow Generator you can create, edit and find inspiration…
Date
October 26, 2021
Posted by

Effective URL validation in PHP with regex

URL validation is a hard thing to do. There are so many variations that it is nearly impossible to predict…
Date
September 14, 2021
Posted by

What is ternary operator and how to use it?

The ternary operator is a short replacement for the if and else statement. It allows writing the condition elegantly in…
Date
September 14, 2021
Posted by

Quick fix for jQuery “Uncaught TypeError: $ is not a function” in WordPress

jQuery is an old library used on millions of websites. Likewise, WordPress used and still uses it extensively in plugins…
Date
August 31, 2021
Posted by

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
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