Enable quantity field on shop page

// Remove the default add to cart button remove_action( ‘woocommerce_after_shop_loop_item’, ‘woocommerce_template_loop_add_to_cart’, 10 ); // Add custom add to cart form for both simple and variable products add_action( ‘woocommerce_after_shop_loop_item’, ‘custom_add_to_cart_form_on_shop_page’, 10 ); function custom_add_to_cart_form_on_shop_page() { global $product; if ( $product->is_type( ‘simple’…Continue reading

defer-om-embed-wordpress.php

function your_prefix_om_defer_script( $campaign_embed ) { $campaign_embed = str_replace( ‘s.async=true;’, ‘s.defer=true;’, $campaign_embed ); return $campaign_embed; }; add_filter( ‘optin_monster_campaign_embed_output’, ‘your_prefix_om_defer_script’ ); add_filter( ‘optin_monster_embed_script_tag’, ‘your_prefix_om_defer_script’ );Continue reading

Cleanup_Posts_Categories_Tags_06_30

/* Plugin Name: Daily Cleanup with Report Description: Deletes standard blog posts, categories, and tags daily, stores summary data for digest reporting, and avoids interfering with WPCode or other plugin taxonomies. Version: 1.9 */ function delete_all_posts_categories_tags_with_report() { global $wpdb; //…Continue reading

Fix missing view_item from single product pages

// Snippet by MI team – start. add_action(‘woocommerce_after_single_product’, function() { if (class_exists(‘MonsterInsights_eCommerce_WooCommerce_Integration’)) { $mi_ec_woo = MonsterInsights_eCommerce_WooCommerce_Integration::get_instance(); if (method_exists($mi_ec_woo, ‘product_detail’)) { $mi_ec_woo->product_detail(); } } }); // Snippet by MI team – end.Continue reading

VVWC Digest Composer

/* Plugin Name: VVWC Daily Digest Composer Description: Composes and sends a daily email summary after cleanup and purge routines. Uses external helper for Elementor-safe context injection. Version: 2.3 */ function send_daily_vvwc_digest_email() { // 🔒 Suppress warnings and inject dummy…Continue reading