Hi @suporteitpoweron
I understand that you’re having trouble with the Out of stock visibility option and trying to customize it to work for a specific list of products.
It seems that the pre_option_woocommerce_hide_out_of_stock_items filter hook you’re trying to use affects the global setting in WooCommerce, and hence it applies to all products. Therefore, it’s not the best option for what you’re trying to achieve. Instead, you can use a custom function that checks the stock status of each product individually.
However, it’s a development territory that may be beyond our area of expertise and assistance as per our support policy.
Still, if you need customization, we do our best to offer advice and direct you to appropriate resources. Based on the feedback we get from our customers, we highly recommend contacting one of the services on our Customization page. On the other hand, I’ll keep this thread open, allowing other members of the community to contribute their expertise.
Thank you for your understanding.
