I am wondering if there is a way to clear/delete/clean buffer output after some output has already been written, but where ob_start() has not been invoked.
(I.e. in the instance in which I.e this method is not possible because ob_start has not been called.)
Specifically, I’ve got a WordPress plugin that I want to specify a certain output, but it being a plugin it runs only after WordPress has begun to send output. I tried ob_get_clean(), but it didn’t have any affect.
Is this possible?
It sounds like you want to “undo” what’s been flushed to the output buffer after the fact. No, this isn’t possible.