With this filter you can control the output of the buttons. A possible case would be, to hide the buy-button for certain products on certain pages. Almost anything is possible. As Value we deliver the current Text (
$text), the current product-ID (
$post_id) and the current position (
$pos), e.g. Details button (
$pos == 'detail') or Buy button (
$pos == 'buy').
Was this article helpful?