Reference: https://codex.wordpress.org/Shortcode_API
Simple Steps:
- Create a plugin (see other posting describing this)
- Add the code to your plugin php file
- Include a function to implement the shortcode
- The function should accept a parameter $atts, which will contain the attribute string
- Have the function return the value to put on the page
- Add a handler by calling ass_shortcut(<shortcode string>,<shortcode function>) with each parameter as a string
- Include a function to implement the shortcode
Example:
VALUE FROM MY HANDLER:simple attributes:
jesse allen
using json_encode():
jesse allen{"first":"jesse","last":"allen"}