Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function add_payout_field( $meta_fields ) {
- $meta_fields['payout'] = array( 'label' => 'Stripe Payout', 'group' => 'woocommerce' );
- return $meta_fields;
- }
- add_filter( 'wpf_meta_fields', 'add_payout_field' );
- function get_payout_data( $order_data, $order ) {
- $order_data['payout'] = get_post_meta( $order->get_id(), '_stripe_net', true );
- return $order_data;
- }
- add_filter( 'wpf_woocommerce_customer_data', 'get_payout_data', 10, 2 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement