Add settings link under plugin name
When creating a custom plugin, you may want to add a custom link to the setting page. That way, the…
How to modify the Gutenberg blocks from post content with PHP
Modify the post content generated by Gutenberg by parsing the blocks with PHP and serializing the modified array back to…

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…

CSS Box Shadow Generator in 2022
Generating CSS3 multilayer box-shadow has never been easier. Now with Box Shadow Generator you can create, edit and find inspiration…
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…
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…
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…

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…
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…
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…
Recent comments