Adding a Custom Field for Products (snippet 1)

$object_id, ‘id’ => ‘wcv_custom_product_ingredients’, ‘label’ => __( ‘Ingredients’, ‘wcvendors-pro’ ), ‘placeholder’ => __( ‘Ingredients’, ‘wcvendors-pro’ ), ‘desc_tip’ => ‘true’, ‘description’ => __( ‘The product ingredients’, ‘wcvendors-pro’ ), ) ); ?>Continue reading

Send Product Data To Stripe

//add order details to Stripe payment metadata function filter_wcv_sc_payment_metadata( $metadata, $order, $source ) { $order_data = $order->get_data(); $metadata[‘Total Tax Charged’] = $order_data[‘total_tax’]; $metadata[‘Total Shipping Charged’] = $order_data[‘shipping_total’]; $count = 1; foreach( $order->get_items() as $item_id => $line_item ){ $item_data = $line_item->get_data();…Continue reading

How to Exclude a Plan from the Signup Page?

function hide_specific_membership_plan( $query_args ) { $user_id = get_current_user_id(); if ( ! $user_id ) { return; } $user_data = get_userdata( $user_id ); $user_roles = $user_data->roles; if ( in_array( ‘subscriber’, $user_roles ) ) { //Post ids that you want to hide $exclude_posts…Continue reading