Dear Matt,
Because post_category
returns ids of categories, to cast it to array of slugs, we have to use slug:
prefix.
post_type
returns string of current post type so we don't have to cast it. So just use:
'visible' => ['post_type', 'product']
Best regards,
Tan