How to hide the bulk variations grid from logged out users
Some people use our WooCommerce Bulk Variations plugin for wholesale, for example with our WooCommerce Wholesale Pro plugin.
If you're creating a wholesale-only store and need to hide the variations grid from logged out users, then you can do so with the following code snippet:
add_filter( 'wc_bulk_variations_get_table_output', 'hide_wcv_table_for_logged_out_users', 11 ); function hide_wcv_table_for_logged_out_users( $table_content ) { if ( is_user_logged_in() ) { return $table_content; } return ''; }
The code snippets are aimed at developers. If you feel comfortable using them, our article on how to use code snippets can serve as a helpful guide. However, if you don't feel comfortable using them, then you should ask your developer or post a job on Codeable. We have partnered with them to provide plugin customizations for our customers.
If searching the knowledge base hasn't answered your question, please contact support.