How to automatically version enqueued scripts and stylesheets in WordPress 12 months ago wordpress WordPress loads assets using the URL query parameter “ver” (e.g., style.css?ver=5.01)....
How to destructure an object as function parameters in ES6 JavaScript 12 months ago javascript The Destructuring assignment is a new JavaScript feature added in ECMAScript 2015. It allows the...
How to get the root directory of a project in Python 12 months ago python Getting the root path of a Python project can be achieved in many different ways depending on the...
How to list all files in a directory with Python 12 months ago python There are many ways you can go about listing files and subfolders within a directory with Python....
How to destructure an array in PHP 12 months ago php Array destructuring is an assignment expression that makes it possible to unpack values from arrays...
How to add a separator between menu items of WordPress 1 year ago wordpress Although the wp_nav_menu() function allows the user to customize different aspects of WordPress...
How to download textarea’s content as a file with JavaScript 1 year ago javascript In this post, I’ll be showing you how you can download a textarea’s content, or any...
How to convert a string into an array of characters in JavaScript 1 year ago javascript A string in JavaScript, and any other programming language for that matter, can be defined as a...
How to add an item to an array conditionally in JavaScript 1 year ago javascript Here are two little tricks you can use if you find yourself in a situation where you want to add...
How do you hide HTML input number arrows 1 year ago html The browser adds two little arrows to the number input called spinners. I personally find them...