Title: riille's Replies | WordPress.org

---

# riille

  [  ](https://wordpress.org/support/users/riille/)

 *   [Profile](https://wordpress.org/support/users/riille/)
 *   [Topics Started](https://wordpress.org/support/users/riille/topics/)
 *   [Replies Created](https://wordpress.org/support/users/riille/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/riille/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/riille/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/riille/engagements/)
 *   [Favorites](https://wordpress.org/support/users/riille/favorites/)

 Search replies:

## Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] woocommerce_is_purchasable filter is fired 5 times!](https://wordpress.org/support/topic/woocommerce_is_purchasable-filter-is-fired-5-times/)
 *  Thread Starter [riille](https://wordpress.org/support/users/riille/)
 * (@riille)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/woocommerce_is_purchasable-filter-is-fired-5-times/#post-13916768)
 * That could work, the only thing is that I’m also basing the purchasablility on
   the logged in user, so the static list would become very big and complex.
 * It also feels like that solution would go against best practices in Object Oriented
   Programming. So the best would be to find a more suitable solution.
 * **Any ideas?** Thanks for your time btw!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] woocommerce_is_purchasable filter is fired 5 times!](https://wordpress.org/support/topic/woocommerce_is_purchasable-filter-is-fired-5-times/)
 *  Thread Starter [riille](https://wordpress.org/support/users/riille/)
 * (@riille)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/woocommerce_is_purchasable-filter-is-fired-5-times/#post-13916627)
 * If I understand you correctly it seems like this static variable will be declared
   and then my code will only be executed for the first loading product in the list
   and not the others.
 * I want my custom code to be executed once for every product in the list because
   my code returns different results depending on the products.
 * Am I right?
 * But very much thanks for the answer and I’ll give it a try even tho I might not
   understand how the static variable will affect the other products.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Social Share, Social Login and Social Comments Plugin - Super Socializer] Steam Login Session Expire time](https://wordpress.org/support/topic/steam-login-session-expire-time/)
 *  Thread Starter [riille](https://wordpress.org/support/users/riille/)
 * (@riille)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/steam-login-session-expire-time/#post-12423105)
 * Thanks for a fast answer!
    -  This reply was modified 6 years, 2 months ago by [riille](https://wordpress.org/support/users/riille/).
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Delete user meta data at user registration](https://wordpress.org/support/topic/delete-user-meta-data-at-user-registration/)
 *  Thread Starter [riille](https://wordpress.org/support/users/riille/)
 * (@riille)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/delete-user-meta-data-at-user-registration/#post-11542014)
 * Hi again, thanks for your help. You were right. I solved this by delete the user
   meta data with the code lines I showed earlier at the very first login. At that
   point the meta data was saved and could be deleted.
 * [https://wp-mix.com/wordpress-first-user-login/](https://wp-mix.com/wordpress-first-user-login/)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Social Share, Social Login and Social Comments Plugin - Super Socializer] How to change displayed username in shortcode](https://wordpress.org/support/topic/how-to-change-displayed-username-in-shortcode/)
 *  Thread Starter [riille](https://wordpress.org/support/users/riille/)
 * (@riille)
 * [6 years, 12 months ago](https://wordpress.org/support/topic/how-to-change-displayed-username-in-shortcode/#post-11519117)
 * Okay, thanks for the information!

Viewing 5 replies - 1 through 5 (of 5 total)