Removing this filter added by a plugin October 9, 2022 by Tarik Billa This is the correct way to do this, turns out. I’m not sure why it didn’t at first. May be the caching plugin.