Model
Website
Magento\Catalog\Model\ResourceModel\Product\Website
What it does
This resource model manages the relationship between products and websites in a multi-website Magento installation.
Developers use this class to assign products to specific websites, remove products from websites, or retrieve which websites a product belongs to.
It's essential when programmatically managing product visibility across different store websites.
Public Methods
- removeProducts()
- addProducts()
- getWebsites()