Posted on November 25, 2016

The Shortcodes config module is a wrapper of the WordPress Shortcode API. The config module only handles a method in order to register/add shortcode.

How it works:

Default config path

{{ Project dir }}/app/config/shortcodes.json

You can rewrite this path by lf_config_shortcodes_path filter.


short_code_tag (string) (required) Shortcode tag to be searched in post content

Item arguments

func (callable) (required) Hook to run when shortcode is found

Default: None

Based on

Shortcode API


Leave a Reply

Your email address will not be published. Required fields are marked *