I have created one content type inheriting from Pages content type, and applied it to Pages library in publishing web.
I want to hide the Publish button from the ribbon. To do so, I have created one custom action which contains following code.
<CustomAction
Id="RemovePublishButton"
Location="CommandUI.Ribbon"
RegistrationId="0x010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF3900D9A1C3A07CE50544B51A08234D0D26DE"
RegistrationType="ContentType">
<CommandUIExtension>
<CommandUIDefinitions>
<CommandUIDefinition
Location="Ribbon.PublishTab.Publishing.Publish" />
</CommandUIDefinitions>
</CommandUIExtension>
</CustomAction>
I have referred this link for hiding button from ribbon. But unfortunately, it is not getting invisible. I have corrected the location form this MSDN link also.
What am I missing?