I am creating my first plugin and have a single function that controls the output. This function has different output based on whether or not it is being viewed from within the WordPress admin vs. the frontend. Is there any way to easily test whether or not my function is being triggered from within admin vs the frontend?
I've tried conditionally checking the query string against the name of my plugin "page" name but it seems to fail on some servers/installs.
Thanks
question from:
https://stackoverflow.com/questions/4128273/how-to-check-if-currently-in-wordpress-admin 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…