Skip to content

Meta-Boxes and Shortcodes

Compare
Choose a tag to compare
@pretzlaw pretzlaw released this 03 Sep 12:55
· 12 commits to release/0.7 since this release

Meta-Boxes

Services can now be used for Meta-Boxes:

services:
  MyBox:
    meta_box:
      rlcs:
        title: Recent matches
        screen: post
        context: side
        priority: low

When rendering the meta-box the service will be invoked.

Shortcodes

Services can also be used as shortcodes:

services:
  MyOwnShortcode:
    shortcode:
      i_am_the_danger: deprecatedUsage
      is_that_you: __invoke

Here we see two shortcodes and how they are mapped to specific methods.

Other changes

  • cli: Redirecting to other methods
  • cli: Allow adding deep nodes
  • qa: PHPStan uses original WP functions