2 Answers
2

There's isn't away of over-riding this (and you shouldn't anyway). If your ajax request can be fired from both front-end and admin side, then you may want to include whether it 'is admin' or not when you post the data. But without any details on the 'issues' it causes with your plug-in, it's hard to offer a work-aroudn.

depending on what you need to do, there are multiple variations of this idea, but it allows you to keep your regular admin code from interfering or firing while performing ajax requests.

another recommendation that can be handy is setting the WordPress "noheader" attribute in your forms.

<input type="hidden" name="noheader" value="true" />

when doing backend processing that ultimately results in a redirect (recommended for avoiding the dreaded double form submission), in rare fringe cases where you need to access wp hooks that would normally occur after "headers already sent".