// 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
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
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
/** * Add a commodity code to all line items sent to Stripe. * * @param string|null $code The commodity code. * @param int $download_id The download ID. * @param array $cart_item The cart item. * @return string|null The commodity…Continue reading
/** * 1) Register custom AutomateWoo product display template * 2) Sort items alphabetically when that template is used */ /* ——————————————— * 1) Register the new template for {{ order.items }} * ——————————————- */ add_filter( ‘automatewoo/variables/product_templates’, ‘rd_aw_register_product_templates’, 10 );…Continue reading
function rd_align_subscription_next_payment( $workflow ) { if ( ! class_exists( ‘WooCommerce’ ) || ! function_exists( ‘wcs_get_subscription’ ) ) { return; } $subscription = $workflow->data_layer()->get_subscription(); if ( ! $subscription || ! is_a( $subscription, ‘WC_Subscription’ ) ) { wc_get_logger()->error( ‘No valid subscription found…Continue reading
/* * Create a unique_id Smart Tag and assign it to each form submission. * * @link https://wpforms.com/developers/how-to-create-a-unique-id-for-each-form-entry/ */ // Generate Unique ID Smart Tag for WPForms function wpf_dev_register_smarttag( $tags ) { // Key is the tag, item is the…Continue reading