Reply To: Solved – Hide private message button with specific conditions
Hello @shanebp,
Thank you so much for your help 🙂
I have tried your code (and also changed you last return button; with return $button; ), but it doesn’t work.
If i login as subscriber all msg buttons are removed from all users profiles, which is correct.
If i login as contributor i can see msg buttons on contributors and admins profiles , but also on subscribers profiles, which i would like not to.
*Lets assume that contributors and admins have ID 23, 6, 25 .
I tried many variations with your code but no luck.