Edit Error Page style

The _default_wp_die_handler function is responsible for outputing the CSS you’re seeing, and whilst the callback function is hookable(see wp_die_handler), meaning you could use your own callback in it’s place, it seems a bit much to be copying and modifying the whole handler just to tweak some CSS. There are barely any hooks in this function … Read more

Insert a group block inside a list item

My solution is to use CSS to simulate numbers (or bullets) on a group (which is a <div>). So I first created groups within groups, and then I added CSS class on the topmost group: .numbered-list { counter-reset: item; } And for each item, the group has this class: .numbered-list-item { } .numbered-list-item:before { content: … Read more

Sanitizing, Validating , etc (Plugin)

You should check the Plugin Security section in the plugin developer’s handbook. 1) Data Must be Sanitized, Escaped, and Validated Validation – These are the checks that are run to ensure the data you have is what it should be. For instance, an e-mail looks like an e-mail address, that a date is a date, … Read more

Query Multiple Filters, one with Meta

Okay, I muddled around until I found what I feel is the best solution. Please feel free to offer any constructive criticism. I concluded this was not possible with a single query, so I broke it into two queries. The basic idea is to get all items matching each query, loop them to build an … Read more