Hidden WPML area only for 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!

Viewing 1 reply thread
  • Author
    • #106133


      How can hidden WPML area only for vendors not for admin?

      Thank you

      You must be logged in to view attached files.
    • #106451
      WCFM Forum


      Please keep this code added to your site –

      add_filter( 'wcfm_is_allow_product_wpml', function( $allow ) {
      	if( wcfm_is_vendor() ) $allow = false;
      	return $allow;
      }, 500 );

      Add this code to your child theme’s functions.php
      In case you do not have child theme then add code using this plugin –¬†https://wordpress.org/plugins/code-snippets/

      Well, this will work after WCFM Ultimate next update.

      Thank You

Viewing 1 reply thread
  • You must be logged in to reply to this topic.