hide pending bookings to appear to vendors

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 – Ultimate hide pending bookings to appear to vendors

Viewing 3 reply threads
  • Author
    Posts
    • #49892
      acauaferreira
      Participant

      HI, i would like to hide that a pending booking appear to vendors.
      Because this will confuse the vendors see all pending bookings that could never be paid.

      Just paid (processing) booking.
      Is it possible?

    • #49953
      WCFM Forum
      Member

      HI,

      I have implemented this for you.

      Add this code at child theme’s functions.php –

      add_filter( 'wcfmu_bookings_menus', function( $booking_status ) {
      	if( wcfm_is_vendor() ) {
      		//if( isset( $booking_status['cancelled'] ) ) unset( $booking_status['cancelled'] );
      		if( isset( $booking_status['unpaid'] ) ) unset( $booking_status['unpaid'] );
      	}
        return $booking_status;
      }, 50 );

      Thank You

    • #50003
      acauaferreira
      Participant

    • #50096
      WCFM Forum
      Member

      Welcome 🙂

Viewing 3 reply threads
  • The topic ‘hide pending bookings to appear to vendors’ is closed to new replies.