Enable Categories on Pages (Article Grouping)

/** * Enable WordPress Categories on Pages * * Allows standard post categories to be used on Pages. * This lets article-style pages be grouped (e.g. Blade Selection, Problems, Metal Cutting) * and enables structured internal linking and query loops.…Continue reading

Wholesale GST + Unit Display Combined

/** * UNITED PRODUCTS – WHOLESALE GST + UNIT DISPLAY COMBINED * ——————————————————- * Shows: * – Excluding GST * – Price per metre / Each * * On: * – Single product pages * – Archive/category/shop product cards *…Continue reading

Checkout – Add class when Windcave is not available

/** * UNITED PRODUCTS – CHECKOUT CLASS WHEN WINDCAVE NOT AVAILABLE * ———————————————————– * * Adds a body class when Windcave is NOT available. * Uses a later hook so WooCommerce gateways are loaded. */ add_filter( ‘body_class’, function( $classes )…Continue reading

Wholesale – No Discount Products

/** * Wholesale – No discount on tagged products * * Products tagged “no-discount” always sell at regular price * for wholesale users, regardless of role discount. * Supports simple products and variations. */ if ( ! function_exists( ‘upl_nd3_is_wholesale_user’ )…Continue reading