Samuel Lamptey
Member since August 2023
Continue Shopping Button
/** * Add Continue Shopping Button on Cart Page * Add to theme functions.php file or…
Auto register guests that purchase
function wc_register_guests( $order_id ) { // get all the order data $order = new WC_Order($order_id); //get…
Update Cart Automatically
/** * Update Cart Automatically on Quantity Change * * @author Misha Rudrastyh * @url https://rudrastyh.com/woocommerce/remove-update-cart-button.html…
Hide Price & Add to Cart for Non Logged in Users for Specific Products
This code snippet allows you to hide the price and 'Add to Cart' button for users…
Add Custom Taxonomy to Woocommerce Single Product Page
add_action( 'woocommerce_product_meta_end', 'wcv_add_brands_single_product' ); function wcv_add_brands_single_product() { global $product; $taxonomy = 'wcv_brands'; // The custom taxonomy…
login redirect changed from default my account page to home page
/** * WooCommerce My Account Page login Redirect */ add_action( 'wp_login', 'owp_redirect_after_logout' ); function owp_redirect_after_logout() {…
Remove Emojis
/** * Disable the emojis in WordPress. */ add_action( 'init', function () { remove_action( 'wp_head', 'print_emoji_detection_script',…