Xampp on Mac: Permission Denied Error Fix
After installing Xampp (even the latest version) on your Mac, you may face some errors related to permissions when working with files (uploading files, resizing images…). The most common output you could see will look like…
PHP: Generating a random number between Min and Max
In order to generate a random number within a given range, you can use the rand() or the mt_rand() functions. Example: Output (the output is not consistent will change each time you execute your code): Note:…
PHP: Merging Arrays with array_merge() and Spread Syntax
In order to merge arrays in PHP (version 7 or 8), you can use the spread syntax (AKA argument unpacking, splat operator) or the array_merge() method. A few examples below will help you understand clearly. Notes:…
How to remove WordPress logo on the admin bar without plugins
In order to remove the WordPress logo from the admin bar, just place the code snippet below into your functions.php: Simple as that. Further reading: WordPress: Passing Params to get_template_part() Using Docker Compose to speed up…
How to disable post tag in WordPress
You can easily disable post tags in WordPress by adding the code below into your functions.php: From now on, you will no longer see the Tags submenu inside the Posts menu on the left sidebar. You…
« Previous 1 2