is_admin always returns true in ajax request
-
I develop LaTeX plugin for WordPress: QuickLaTeX.
In the latest version I’ve added ajax-based formulas preview in comments (so user can check correctness of the LaTeX code and view compiled formulas before posting comment).
I use AJAX Comment Preview plugin for comments preview + special filter for
comment_text
inside my plugin.During this feature development I found that
is_admin()
always returns true in AJAX request (done through admin-ajax.php) to function inside plugin PHP file.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘is_admin always returns true in ajax request’ is closed to new replies.