Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
403 views
in Q2A Core by
How can i put some code only visible to admins ? or only visible in admin panel ?

I don't want to use the Plugging extensibility for the same ... is their any other way via themes ?
Q2A version: 1.5

1 Answer

0 votes
by

You can use if (qa_get_logged_in_level()>=QA_USER_LEVEL_ADMIN) to check if the current user is an admin.

...