Keep WordPress database leaner by removing autoloaded options from wp_options table

wp-options-loaded

In WordPress a number of autoloaded options are loaded on every page, this gathers over time with deleted themes, plugins etc and can slow down a site. Typically most options that are installed in the database are permanently stored. These options which are autoloaded are loaded on very WordPress page. To see the total size…

Read More

Change WooCommerce Checkout Page To A 2-Column Layout

Woocommerce Checkout Layout

The default WooCommerce checkout page layout doesn’t make great use of a 2nd right hand column and looks a bit disjointed. Here is some CSS that can push the product order data to the 2nd column balancing the layout more evenly, making for a better user experience whilst checking out. The CSS kicks in at…

Read More

Completely hide WooCommerce products from shop, product search and WordPress search

Hidden Woo Products Showing in search

You can hide a WooCommerce product from the shop page and product search by choosing ‘Hidden’ in the ‘Catalog visibility’ options from the Publish metabox on a product page in the backend. This is good and it hides the product as advertised from the shop and product search results but the product is still visible…

Read More

Set noindex nofollow on posts from specific category using Yoast WordPress SEO

Wordpress Seo Noindex Certain Posts

Using the Yoast WordPress SEO filter wpseo_robots filter you can set posts from a specific category to have the meta tag set with noindex/nofollow. add_filter( ‘wpseo_robots’, ‘yoast_seo_robots_remove_single’ ); /** * Set certain posts to noindex nofollow */ function yoast_seo_robots_remove_single( $robots ) { if ( is_single() && has_term( ‘uncategorized’, ‘category’ ) ) { return ‘noindex,nofollow’; }…

Read More

Disable WooCommerce Payments credit card/debit card gateway on Checkout

Multiple Stripe Gateway Woocommerce

To use Apple Pay as a payment gateway on WooCommerce, you’ll either need the older Stripe or newer WooCommerce Payments plugin the latter being more heavily promoted by Woo and WordPress. When using the WooCommerce Payments plugin which is powered by Stripe, as well as an Apple Pay payment gateway you also get a Stripe…

Read More

Send Full Product Details over WooCommerce Webhook Action Hook

Woocommerce Webhook Action

WooCommerce has a webhook feature that allows you to send product data to a webhook url when a certain product status is made. The configuration of the webhooks is at WooCommerce>Settings>Advanced>Webhooks The product states to choose from to fire the webhook are referred to as Topics and include states like Order Created, Order Updated and…

Read More