Type: php
Custom Vendor Product Fields for HTS and Export Classification Number
// Output the custom HTS Classification at the bottom of the General tab of Product Edit Page. add_action( ‘wcv_product_options_general_product_data’, ‘wcv_product_hts_classification’ ); function wcv_product_hts_classification( $object_id ){ WCVendors_Pro_Form_Helper::textarea( array( ‘post_id’ => $object_id, ‘id’ => ‘wcv_custom_product_hts_classification’, ‘label’ => __( ‘HTS Classification’, ‘wcvendors-pro’ ),…Continue reading
Untitled Snippet
jason-ld header code
Rankmath Breadcrums
add_action(‘wp_head’, ‘mi_add_breadcrumbs’); function mi_add_breadcrumbs() { if (function_exists(‘rank_math_the_breadcrumbs’)) { echo ‘ ‘; rank_math_the_breadcrumbs(); echo ‘ ‘; } }Continue reading
Untitled Snippet
How to Set a Default Country on the Vendor Registration Form
add_action( ‘wp_enqueue_scripts’, static function () { $registration_page_id = (int) get_option( ‘wcv_signup_registration_page_id’, 0 ); if ( 0 === $registration_page_id || ! is_page( $registration_page_id ) ) { return; } $default_country = ‘US’; // ISO 3166-1 alpha-2 code (e.g., GB, CA, AU, …)…Continue reading
VG uuid generation for inkontaktsystem_vg_uuid table
/** * ============================================================================ * WORDPRESS SEQUENTIAL VG NUMBER GENERATION FUNCTION * ============================================================================ * @author Gerrit * @description Generates unique sequential numbers using the table’s * auto-increment ID and returns codes like “VG0001”. * @since 2025-11-14 * * FUNCTION NAME TO…Continue reading
uuid generation script for inkontaktsystem_object_uuid table
/** * ============================================================================ * WORDPRESS UUID GENERATION FUNCTION FOR INKONTAKTSYSTEM * ============================================================================ * @author Sumaiya * @description This function generates a unique UUID in format “xxx_xxx” and * creates a type-prefixed UUID “type_xxx_xxx”. It automatically * inserts the record into…Continue reading
upsert script for database table writing and updating using flowmattic
/** * ============================================================================ * FINAL WORDPRESS MULTI-PURPOSE “UPSERT” FUNCTION * ============================================================================ * @description This function provides a dynamic “upsert” (update or insert) * capability for any WordPress database table. It is designed to be * used as a custom function…Continue reading