All Articles
Javascript
Typescript global window data
I often have to get some data from the global window object. And doing so in typescript will end up…
WordPress
How to log all SQL queries in WordPress
How do you get a complete log of the SQL queries done when a request is made? You could use…
WordPress
Get the user ID by login in WordPress with a simple function
Recently I needed to get the ID of a user out of a big list. I didn’t want to open…
WordPress
WordPress, Docker, and WP CLI
As someone who has been using Docker for local development over the past five years, I can confidently say that…
WordPress
How to get the parent terms of any taxonomy
A post may have many taxonomies and each taxonomy may have also many terms and then each term may have…
WordPress
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…

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

Productivity Tools
Best CSS Box Shadow Generator in 2025
Creating multilayer box-shadow using CSS3 has never been simpler! Thanks to Box Shadow Generator, you can now generate, customize and…
PHP Snippets
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…
Tips & tricks
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…