[wp-hackers] is there a way to make sure that a shortcode can be used only by certain userroles?

Haluk Karamete halukkaramete at gmail.com
Tue Nov 12 19:57:19 UTC 2013


What I mean by that is that is this...

let's say there is an admin-editors-only shortcode. let's call it "xyx"
shortcode for the sake of an example.

is it possible to have a contributor or author to not to be able to use
that shortcode? they all get stopped with a warning that the post cannot be
saved (or created)  because it contains the "xyx" shortcode!

to cover all the possibilities (such as posting thru email, or thru some
other esoteric ways) , what is the best hook(s) that I need to watch out so
that there are no loop holes left...

I hope it was clear and did not confuse you...
thank you


More information about the wp-hackers mailing list