How could i add new column "billing_type" at order list and single order?

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Multi Vendor Marketplace Plugin | WCFM Marketplace Forums WCFM How could i add new column "billing_type" at order list and single order?

Viewing 2 reply threads
  • Author
    Posts
    • #31150
      MOHO
      Participant

      i custom a field “billing_type”.

      How could i add this new column “billing_type” at order list and single order?

      thanks

      Attachments:
      You must be logged in to view attached files.
    • #31291
      WCFM Forum
      Keymaster

      Hi,

      Kindly add this to add new column in Orders page –

      add_filter( 'wcfm_orders_additional_info_column_label', function( $billing_type_column_label ) {
      	$billing_type_column_label = 'Billing Type';
      	return $billing_type_column_label;
      });
      add_filter( 'wcfm_orders_additonal_data_hidden', '__return_false' );
      
      add_filter( 'wcfm_orders_additonal_data',function( $billing_type_column_data, $order_id ) {
      	$billing_type_column_data = get_post_meta( $order_id, 'billing_type', true ); // SET YOUR DATA HERE
      	return $billing_type_column_data;
      }, 50, 2);

      Thank You

    • #31533
      MOHO
      Participant

      Thanks it work now.

      Please close it.

Viewing 2 reply threads
  • The topic ‘How could i add new column "billing_type" at order list and single order?’ is closed to new replies.