Search for multiple IP addresses in webserver log

To search for an IP address in a server log, grep is a tool to do it. To search for a single IP address, you need to know where the log file is then either navigate to it or use…
Ouput Custom Taxonomy Terms in a Post

If you have created a custom taxonomy and linked it to a custom post type and want to output any terms used for that post in the single post view you can use the_terms the_terms <?php the_terms( int $post_id, string…
Remove Product Tags from Products Post Type in WooCommerce

Here is a great snippet I came across to remove all product tags for the Product Custom Post Type in WooCommerce, it has 4 action/filters to remove the product tag metabox from the products posts, remove the tag column in…
Equal Heights after Search & FIlter Pro Ajax Refresh

Using Search & Filter Pro with a grid of items that have equal heights set may loose their equal heights after a S&F filter on the same page Ajax refresh. You can pass in some jQuey to Search & Filter…
Redirect a Custom Post Type’s Single and Archive Pages in WordPress

You may find that you need to hide or redirect a custom post types single or archive pages or even both in WordPress. This may be the case if you are outputting a custom loop of CPTs and don’t want…
Cache warming a website with Optimus Prime

Not all cache plugins or apps preload pages or provide a warm cache of all content, normally the first time a page is visited it is not cached but subsequent pages are. More plugins are providing pre-loading or warm cache…
Force Password on SSH Connection

This is the command to force a SSH password between a client and server, you may have passwordless connection set up with SSH keys but want to check that a password is correct.ssh -o PreferredAuthentications=password -o PubkeyAuthentication=no user@1.2.3.4Swap out user@1.2.3.4…
Block xmlrpc.php and wp-login.php via NGINX

You can block xmlrpc.php and wp-login.php via NGINX with the configurations below, what’s good about this approach is that it prevents brute force attacks at the NGINX server level without any PHP/MySQL resources being used. xmlrpc.php for NGINX location =…
Move WooCommerce Product Long Description Into The Short Description Product Layout

How to move the woocommerce product long description text into the short description product layout with a couple of woocommerce actions and the long description tab removal. Remove The Description Tab This tab by default has the long product description.…
Set hostname and fqdn in Ubuntu 18.04 & 20.04 & 22.04

Hostname in Ubuntu 18.04 & 20.04 & 22.04You can find and change the hostname with the commands hostname or hostnamectl in Ubuntu 18.04 & 20.04, if you run the command on its own it will tell you what the current…