I am creating a word custom add-ins and in that depending on the file name I have to disable and enable custom ribbon button/s or we can say hide/show custom ribbon button/s.
I go through the link given in Microsoft Docs Here and many other article that suggest that it is only currently in preview state and only accessible on Excel.
I also go through Office User Voice and found one suggestion here.
If anyone have alternative of this then please help me to achieve that.
Support: This add-ins should support Word for Windows, Word For Mac and Word For Web.