Author Archive

Website Analytics WordPress Plugin Roadmap

Posted on: November 2nd, 2023 by Stuart

Below I will outline future development plans for this free Website Analytics WordPress plugin, if you would like other upgrades which are not already live or listed below please get in touch. This schedule will be updated regularly with new functionality. Please share if you know of someone that would benefit from this plugin. Thanks.

Analyse Visitors Roadmap

Posted on: August 23rd, 2023 by Stuart

This is where future functionality for the Analyse Visitors WordPress plugin is documented.

Installing DataTables for a WordPress Plugin

Posted on: August 22nd, 2023 by Stuart

A quick post about adding/using Datatables in the Admin – backend – section of WordPress in your Theme or Plugin.WordPress loads jQuery automatically – it uses it – so you don’t need to. When you download DataTables jQuery is either linked to or is a file as part of the download. Using another version of […]

How to Blacklist an IP address and redirect them

Posted on: June 2nd, 2023 by Stuart

If your website is having a lot of traffic from an IP address and you would like to redirect them to a landing page, here is the code to do it. With this WordPress function which you can add to your functions.php file, you can add IP addresses into the array called $blocked_ips and change […]

How to Turn off HTML Form Field Autocomplete

Posted on: June 1st, 2023 by Stuart

To turn off the browser autocomplete for HTML form fields you use the command autocomplete=yes. If the field is an email field like: You can use the autocomplete=”email” too. Now that is easy, right?However, the autocomplete command is only a signal to the browsers to act on and is not guaranteed. Sometimes they just ignore […]

Creating WooCommerce Checkout Rate Limiting

Posted on: June 1st, 2023 by Stuart

If you have read another one of my posts about Stop Fake Spam WooCommerce Orders you will know how important it is to secure your Woocommerce – in fact any website platform – checkout page from bots testing their stolen credit cards.That’s right, one of the most common ways for thieves to test if their […]

Stop Fake Spam WooCommerce Orders

Posted on: May 31st, 2023 by Stuart

Have you received one or many attempts of fraudulent orders on your WooCommerce WordPress website, as one of my clients did, here are some solutions to reduce this from happening in the future. What this will do is run a function called spam_account which will compare the name. the first line in the address, phone […]

Create WooCommerce PHP Function to get the top 3 products bought at the same time from a product_id

Posted on: May 19th, 2023 by Stuart

Quite a long post title this one, if you would like a function in WordPress/WooCommerce to list the top 3 other products bought at the same time as a supplied product_id here is the code. I am using MySQL join commands to connect up the following three tables:postswoocommerce_order_itemswoocommerce_order_itemmeta Here is the function to add to […]

Remove All Add to Cart Buttons in WooCommerce

Posted on: April 18th, 2023 by Stuart

A client of mine required a button that would remove all Add to Cart buttons throughout the site from a single click. They used this for temporarily stopping purchases if their prices needed changing.This is particularly handy for emergencies! You might need a button to do this for many reasons, but it is not needed […]

Stopping a WordPress Plugin from updating

Posted on: April 17th, 2023 by Stuart

To stop a WordPress plugin from asking to be updated you need to add the following code in your functions.php file. It is very easy to do and shouldn’t take long at all.The main filename of a plugin is often the same as the folder name. This really only should be used if you REALLY […]