How Can I Allow Both SSH and SFTP access?
SSH is a way nice way to connect to a server and send commands and manage the server with SFTP you can transfer files easily to and from the server. You just need to make sure that the user has SSH access and they will be able to connect as SFTP. You have to make sure...
How to Find a MySQL/MariaDB Column That has a Numeric Value
How to Find a MySQL/MariaDB column that has a numeric value. Is your app maybe using a text field that may have the numbers, letters text but now you want to search for results that have a column that has a numeric value or specifically 0 or 1. You can use the SQL...

How to Remove Persistent WooCommerce Admin Notice: Coupon management has moved!
At some point WooCommerce has moved the coupon management under the Marketing Top level menu. For older installations of woocommerce there was a warning telling the user where the coupon management menu was moved to and a button to dismiss it. There are cases with...

How to Clean up WordPress Post Meta Table from Empty Values
In one of the previous articles we wrote that some WordPress developers store default values that should not be in the database. It doesn't make sense to store 0 in a database. The WordPress plugin can pull the information from the database and if it's an empty value...

How to Write to WordPress Debug Log File
How to Write to WordPress Debug Log File First, why do you need to write a WordPress debug log file? Software programs have glitches and sooner or later they tend to show up so it’s good to be prepared. In order to fix a glitch you need to know what conditions a...
How to Fix Huge Packets Loss in VMWare Player
One of our virtual machines had a huge data packet loss (80%+). The host was running Windows 10 Pro and Ubuntu 20 guest. We tested it with the MTR program. mtr example.com and that had huge effect on a development of that machine lots of good requests would fail and...

WordPress Plugin Developers Stop Storing Empty or Default Values in the Post Meta or in the Options
When developing a WordPress plugin it's always a good idea to consider the site's performance. Many plugin developers store default config information or empty values in the database (options or post meta) which could easily be stored as a hard-coded value within the...
How to Hide WooCommerce Product Gallery
In one of the recent updates of the Storefront theme broke the gallery and they started showing up vertically. It seems the main product image is clickable so to keep things minimal let's hide the Product Gallery with CSS. .product .flex-control-thumbs { display:...

How to Target a Specific Element/div on a Specific WordPress Page with CSS
WordPress has many hooks and filters that allow us to modify its behavior or update data before it is passed to another filter. Here's a video explanation: https://youtu.be/r3ZsRF0SNTc How to target an element with CSS if you're targeting an element with a specific ID...

How to Securely Set CORS Response Headers in PHP
What is CORS? Cross-Origin Resource Sharing (CORS) is a security mechanism that is based on HTTP headers. The idea is to restrict resources to be loaded or interacted with from the same domain or from all. When you have an API that maybe called via ajax request from...