Title: Undefined variable $afpvu_show_hide
Last modified: March 5, 2024

---

# Undefined variable $afpvu_show_hide

 *  Resolved [RogerSWD](https://wordpress.org/support/users/rogerswd/)
 * (@rogerswd)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/undefined-variable-afpvu_show_hide/)
 * Hello, using latest version of your plugin. Using php 8.1 and wordpress is 6.4.2.
   This error is repeated in the error log.
   _Undefined variable $afpvu\_show\_hide
   in \xxx\www\wp-content\plugins\products-visibility-by-user-roles\class\_afpvu\
   _front.php on line 51_
 * Will there be an update to your plugin to fix?

Viewing 1 replies (of 1 total)

 *  Plugin Support [MeganSupport](https://wordpress.org/support/users/megan891/)
 * (@megan891)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/undefined-variable-afpvu_show_hide/#post-17499819)
 * We stand behind Product Visibility by User Role for WooCommerce 100%. If you 
   experience any issues we will be happy to help you via our official website only.
   We do NOT monitor this forum for support requests.
 * If you need help, a good place to start is our [documentation](https://wpwham.com/documentation/).
 * If you can’t find the answer there, simply [open a support ticket](https://wpwham.com/support/)
   on our website.
 * Thanks!

Viewing 1 replies (of 1 total)

The topic ‘Undefined variable $afpvu_show_hide’ is closed to new replies.

 * ![](https://ps.w.org/product-visibility-by-user-role-for-woocommerce/assets/icon-
   256x256.png?rev=1722442)
 * [Product Visibility by User Role for WooCommerce](https://wordpress.org/plugins/product-visibility-by-user-role-for-woocommerce/)
 * [Support Threads](https://wordpress.org/support/plugin/product-visibility-by-user-role-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/product-visibility-by-user-role-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/product-visibility-by-user-role-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/product-visibility-by-user-role-for-woocommerce/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [MeganSupport](https://wordpress.org/support/users/megan891/)
 * Last activity: [2 years, 3 months ago](https://wordpress.org/support/topic/undefined-variable-afpvu_show_hide/#post-17499819)
 * Status: resolved