How could change the order status as text at order list?

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 change the order status as text at order list?

Viewing 3 reply threads
  • Author
    Posts
    • #31550
      MOHO
      Participant

      sorry i lost the code you give me before.

      I no use your custom plugin, so i need custom code to change it.

      change “icon” to “text”

      Could you give me?

      thanks.

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

      Hi,

      No worries, here it is –

      function wcfm_order_status_custom_display( $display_label, $order ) {
      	if( $order && is_object( $order ) ) {
      		$display_label = wc_get_order_status_name( $order->get_status() );
      	}
      	return $display_label;
      }
      add_filter( 'wcfm_order_status_display', 'wcfm_order_status_custom_display', 50, 2 );

      Thank You

    • #31560
      MOHO
      Participant

      Thanks it work now.

      Please close it.

    • #31561
      WCFM Forum
      Member

      Great, you are welcome 🙂

Viewing 3 reply threads
  • The topic ‘How could change the order status as text at order list?’ is closed to new replies.