It perhaps was in your functions.php file, but there are other possibilities.
The reason for the issue is that you don’t have that PHP code inside of PHP tags. It should look more like this:
<?php
add_filter( ‘pwb-single-product-brands’, _’return_false’);
?>
Whereas you just have it naked, so it’s not executing.
]]>