0

There are numerous dynamically named hooks in WordPress such as get_transient_$transient where $transient is the name of the transient being retrieved.

How do I hook into this so that my filter is called for all values of $transient? Something like get_transient_*

0

1 Answer 1

1

Unfortunately there is no global transient filter - you'd either need to know all the transient names you want to target, or you'll have to use the special all hook (which runs for all actions and filters)

5

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.