Just like add_post_meta() I want to add multiple transients with same key with different values and different timeouts, but I see that the set_transient() function doesn't do that. Is this possible?

1 Answer 1


No: each transient will need a unique name. Per the documentation:

If a transient exists, this function will update the transient’s expiration time.

  • This is very sad. I guess there is no way to simulate this with existing methods :/
    – BOZ
    Aug 31, 2022 at 19:03

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.