Checking if you are “inside” specific filter or action?
-
I am in the situation where I have to run the same code in two different filters. The only difference is that in one of the filter I have to return early if not on a specific page, and in the other filter I don’t.
Since the one filter runs on both pages and the other runs on only one, I could drop duplicating the function and only have one if I could instead check what filter I am in. If I am in the filter that runs on both pages, I could check if I am on the correct page.
Is this possible?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Checking if you are “inside” specific filter or action?’ is closed to new replies.