public function process_split_payment( $order ) { $vendors_due = WCV_Vendors::get_vendor_dues_from_order( $order, false ); $sub_accounts = array(); foreach ( $vendors_due as $vendor_id => $products ) { $_vendor_account = get_user_meta( $vendor_id, ‘_paystack_sub_account_code’, true ); $sub_accounts[] = array( ‘subaccount’ => $_vendor_account, ‘share’ => $calculated_share,…Continue reading
$vendor_id = get_post_field( ‘post_author’, $post_id );Continue reading
$vendor_id = get_current_user_id();Continue reading
add_filter( ‘wcvendors_pro_dashboard_open_path’, ‘wcv_override_dashboard_open_path’ ); function wcv_override_dashboard_open_path( $path ){ $path = get_stylesheet_directory(). ‘/wc-vendors/partials/wcvendors-pro-dashboard-open.php’; return $path; }Continue reading
get_title() : ”; $product_description = ( isset( $product ) && null !== $product ) ? $post->post_content : ”; $product_short_description = ( isset( $product ) && null !== $product ) ? $post->post_excerpt : ”; $post_status = ( isset( $product ) &&…Continue reading
[wcv_signup_form]Continue reading
[wcv_login_form]Continue reading
[wcv_vendorslist orderby=”registered” order=”ASC” per_page=”12″ has_products=”yes”]Continue reading
//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
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