Vendor Store offline preview

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 2 reply threads
  • Author
    Posts
    • #35835
      johan
      Participant

      Hi, can it be possible for a vendor to ‘preview’ his/her site while set to offline? Currently it is not possible.

      Ta
      Jay

    • #35891
      WCFM Forum
      Member

      Ok, we will this prohibition in next update.

      Thank You

    • #36335
      WCFM Forum
      Member

      Hi,

      Kindly add this code for the purpose –

      add_filter( 'wcfmmp_is_store_offline', function( $is_store_offline, $vendor_id ) {
      	if( is_user_logged_in() ) {
      		$user_id = get_current_user_id();
      		if( wcfm_is_vendor( $user_id ) && ( $user_id == $vendor_id ) ) $is_store_offline = false;
      	}
      	return $is_store_offline;
      }, 50, 2 );

      Thank You

Viewing 2 reply threads
  • The topic ‘Vendor Store offline preview’ is closed to new replies.