Adjusting the HTML markup in PHP has always been a struggle, but WordPress 6.2 makes it a breeze with the WP_HTML_Tag_Processor API. For example, here’s how you can add an alt=”” attribute to an <img /> tag: If you’ve ever struggled to add an HTML attribute using regular expressions, you know how big of anContinue reading “How to Modify HTML in a PHP WordPress Plugin Using The New Tag Processor API”
Tag Archives: wordpress
How to curry functions in TypeScript so that it always works correctly?
Removing the first argument from the function signature is surprisingly hard. The way to do it correctly is equally surprising!
How to Implemented Conditional Fields In TypeScript?
Using TypeScript to solve a common mistake Gutenberg developers make.