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