Use WooCommerce Short Description for Meta Catalogue

function rd_meta_catalogue_use_short_description( $description, $product_id ) { $product = wc_get_product( $product_id ); if ( ! $product ) { return $description; } if ( $product->is_type( ‘variation’ ) ) { $product = wc_get_product( $product->get_parent_id() ); if ( ! $product ) { return $description;…Continue reading

WC Vendors – Automate PDF Invoice for vendor orders

add_action( ‘woocommerce_order_status_processing’, function( $order_id ) { if ( ‘yes’ !== get_option( ‘wcvendors_vendor_invoice_enabled’, ‘no’ ) ) { return; } $order = wc_get_order( $order_id ); if ( ! $order ) { return; } // Skip per-vendor child orders — only process the…Continue reading

Untitled Snippet

NOOB STORE NOOB STORE Best Products at Best Prices Home Products Contact Welcome To Our Store Shop Your Favourite Products Online! Our Products Headphones Rs. 1500 Order Now Smart Watch Rs. 2500 Order Now Shoes Rs. 3000 Order Now Mobile…Continue reading

Allowed Referrer Page

// Allowed Referrer Page / Kiri Vadivelu / 2026 add_action(‘template_redirect’, function() { // ID of the page to protect eg. Thank You page if (!is_page(123)) { return; } // URL of the allowed referring page if (wp_get_referer() === ‘https://yoursite.com/form-page/’) {…Continue reading

WC Vendors – Show the “AI” overlay on the product image

// Add an “AI used” checkbox to the vendor’s own product edit form, after Tax Class (General tab) add_action( ‘wcv_product_options_tax’, function( $post_id ) { \WC_Vendors\Classes\Front\WCV_Form_Helper::input( array( ‘id’ => ‘_wcv_ai_generated’, ‘post_id’ => $post_id, ‘type’ => ‘checkbox’, ‘label’ => __( ‘This product…Continue reading

[TEMP BUG FIX] Temporary Meta Product Save Workaround

function rd_meta_use_synchronous_product_save() { if ( ! function_exists( ‘facebook_for_woocommerce’ ) ) { return; } $integration = facebook_for_woocommerce()->get_integration(); $scheduled = array( $integration, ‘schedule_product_sync’ ); $direct = array( $integration, ‘on_product_save’ ); $hook = ‘woocommerce_process_product_meta’; $priority = has_action( $hook, $scheduled ); if ( false…Continue reading