In Magento2, How can get the all (product) Attributes based on the Attribute Set Id or Attribute Set Name in the Custom Product List Page.
Magento2 – How to Get Attributes Based on Attribute Set ID or Name
attribute-setattributesmagento2product-attribute
Best Answer
you can make use of the Magento\Catalog\Api\ProductAttributeManagementInterface
Please note that you should not be using the object manager directly. This is just for demonstration