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 ''; }
Please note that this is aimed at developers and if you don't know how to use it, 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.