How to exit from plugin execution mid-stream?
I’m developing a plugin and on a certain condition, I need it to completely exit my plugin and continue doing whatever else WP needs to do (other plugins, whatever).
The problem I’m having is that any use of “return” just exits the function being executed at that moment, and not the entire plugin. So execution is allowed to continue when I want it to bail out completely.
Is there a way to do this? I can’t use die() because WP itself needs to complete. I just need my plugin to give up and let everything move past it.
Grateful for any suggestions…
- The topic ‘How to exit from plugin execution mid-stream?’ is closed to new replies.