Skip to main content
9 events
when toggle format what by license comment
Apr 9, 2018 at 7:39 comment added Nick send_headers would win out every time and would ensure that it was loaded even if added after the page was cached” — Just to note that send_headers does not work to beat page caching used by plugins such as W3 Total Cache in my tests, or any static caching that effectively bypasses WordPress at the server level.
Jan 9, 2016 at 21:39 history edited Bryan Willis CC BY-SA 3.0
added 3 characters in body
Jan 8, 2016 at 7:48 history edited Bryan Willis CC BY-SA 3.0
deleted 53 characters in body
Jan 8, 2016 at 6:21 comment added fuxia Yep, looks right. :)
Jan 8, 2016 at 6:13 comment added Bryan Willis Toscho I updated my answer based on your suggestion. Is that what you meant?
Jan 8, 2016 at 6:12 history edited Bryan Willis CC BY-SA 3.0
added 216 characters in body
Jan 8, 2016 at 5:55 comment added Bryan Willis Interesting point toscho... I've been making wordpress sites for about ten years now and I've never seen that format before using the or symbol. I actually asked a question about how to properly format conditions a couple years ago if you feel like adding that approach.
Jan 8, 2016 at 5:05 comment added fuxia You should still use is_admin() || add_action( … ), because there is no need to pollute the list of registered callbacks if you don't need it.
Jan 8, 2016 at 4:57 history answered Bryan Willis CC BY-SA 3.0