Hide Booking notifications

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!

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

      Hi , as who are using WooBooking receive 2 notification for 1 order ,
      i would like to remove the notification related to new booking, and leave the notification related to Order.
      Because its too confused to explain to vendor that for ONE booking, he will receive 2 Notifications (With different order numbers!) in dashboard.

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

      Hi,

      Please add this code snippet –

      add_filter( 'wcfm_is_allow_notification_message', function( $is_allow, $wcfm_messages_type, $message_to ) {
      	if( $wcfm_messages_type == 'booking' )	$is_allow = false;
      	return $is_allow;
      }, 60, 3 );

      Thank You

    • #56979
      acauaferreira
      Participant

      Thankyou, it works <3

      You should have a Developer documentation with tips and tricks with all this codes, would help a lot all users and would require much less your support.

    • #57126
      WCFM Forum
      Keymaster

      You are welcome 🙂

      We are actually creating this for developers – https://docs.wclovers.com/tweaks/

      Thank You

Viewing 3 reply threads
  • The topic ‘Hide Booking notifications’ is closed to new replies.