Title says it all. We have a front end form on our site where users submit content via front end (also they are logged in while doing this)
Because these short codes add them self to the content box of the page editor so in turn they are adding themselves to the front end form page editor.
My question is, how can I best remove these short code buttons from showing on the page editor for anyone else's role who is not an admin?
I don't know if I could use a conditional to check the current users role and if it is anything other than admin then use the remove_shortcode() function?
Does that sound right or is there a better way?