Capturing Unlisted Shortcode Attributes

Capturing Unlisted Shortcode Attributes

WordPress
I did a project recently to develop a plugin that utilizes a shortcode. No problem at all. One of the requirements, however, for this shortcode was to allow users to enter attributes that might not be "whitelisted" (a.k.a the defaults that you would normally place for the shortcode). I thought this was pretty interesting and kind of a unique idea. I wasn’t quite sure of the point at first to be honest, but now I can see the reason behind it and will get to that a little bit further down. Let’s dive into the code! (jump to the full code example if you prefer) The Process We do still need to support the basic defaults here as well. These unlisted attributes will just be an addition to the predefined…
Read More