Robert Chapin, who contributes to WordPress core, published the first draft of a roadmap that explains how the Shortcode API could be overhauled. “The decision to create this roadmap arose from specific needs that are not met by the old code,” Chapin said. The proposal has an aggressive timeline with development starting in WordPress 4.4 and ending in WordPress 4.7. In WordPress 4.4, a new syntax would be introduced that provides opportunities to make significant changes to the API. Here are a few examples of shortcodes that use the new syntax. Self-Closing: [{{shortcode}}] Attributes: [{{shortcode attr1=”value1? attr2=’value2? “value3” ‘value4’ value5}}] Enclosing: [{{shortcode}$] HTML [${shortcode}}] Multiple Enclosures: [{{shortcode}$] HTML [${encl2}$] HTML [${encl3}$] HTML [${shortcode}}] Escaped Code: [!{{shortcode}}] In the WordPress 4.5 development cycle, the focus would be to deprecate the old syntax, “Plugins that register shortcodes without declaring support for new features will raise debugging errors to alert developers that support for the old shortcode syntax is ending,” Chapin said. Posts using the old syntax would continue to work. During the WordPress 4.6 update process,
Share This