Category: <span>Uncategorized</span>

WordPress 5.4 introduces apply_shortcodes() as an alias for do_shortcode() WordPress 5.4 introduces a new function – apply_shortcodes(). It’s an alias for the current do_shortcode() function. The semantics of do_* implies the function displays the result of the shortcode. But that’s not actually the case. In fact, do_shortcode() needs to be echoed to display its result. Here is the current implementation: echo do_shortcode( ‘[wporg]My Text[/wporg]’ ); […]

Block scaffolding is a shorthand term that describes the supporting directory structure you need for WordPress to recognize a block. Typically that directory includes files like index.php, index.js, style.css and perhaps others—which in turn hold calls like register_block_type. You’ve likely noticed a lot of tools that aim to automate the scaffolding build—or at least make it easier to build your own […]