Site Wide Header
add_filter('get_custom_logo', function($html) { // Only touch the header logo return preg_replace( '/]+)>/', '', // set to…
ACF_KEYSMST_MSTCASECPT – TAB - OUTCOMES & DISCHARGE (v3.0 Modular)
/** * ============================================ * MST CASE - TAB: OUTCOMES & DISCHARGE (v3.0 Modular) * ============================================ *…
Keep users logged in for 1 month on Staq
function stq_change_auth_cookie_expiration_period( $expiration_period ) { $expiration_period = MONTH_IN_SECONDS; // 1 month return $expiration_period; } add_filter( 'auth_cookie_expiration',…
Amit choudhary blogs
Blogger
Disable Unused Auto-Generated Image Sizes
* Disable Unused Auto-Generated Image Sizes * Optimized for AWS Storage savings & Performance.
Register New Users as Customers
Register New Users as Customers
Remove the coupon section for orders that did not use any coupon.
add_action( 'woocommerce_email_before_order_table', 'conditionally_remove_coupon_section_from_email', 5, 4 ); function conditionally_remove_coupon_section_from_email( $order, $sent_to_admin, $plain_text, $email ) { if (…
Force account creation by cart total
Force account creation at checkout if the cart total is a certain amount and the quantity…
Disable WordPress auto-update emails (plugins/themes/core)
// Disable auto-update emails. add_filter( 'auto_core_update_send_email', '__return_false' ); // Disable auto-update emails for plugins. add_filter( 'auto_plugin_update_send_email',…
Prevent Discounts on Upgrades
Does not allow a discount code to be applied when an license upgrade is present in…
Use Full Store Address in Ships From
By default the Ships From metadata displayed under the add to cart button only shows the…
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…