• 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)
  • the same problem, I develop a plugin widget in the plugin adds a text output at each end of the record office, and there is a button in a form for sending Ajax requests to the main page constantly Ajax request is identified through is_admin () as true

Viewing 1 replies (of 1 total)
  • The topic ‘is_admin always returns true in ajax request’ is closed to new replies.