Regular Expression (Regex) to Remove Empty WordPress Shortcode Parameters

This is a handy regular expression snippet to find and remove unused shortcode parameters from a wordpress shortcode. It will grab all empty shortcode params like parameter=”" inside a shortcode bracket and remove them. We used this in our new form tool...

We do not write or claim ownership of any of the articles featured on this website. Instead we aim to highlight them so you can read the full article at the original source. To finish reading this article, follow the continue reading link below. CONTINUE READING
Author: Inbound Now

The sole purpose of Inbound Now is to educate marketers and business owners on how to adopt and leverage advanced inbound marketing principles to further their business goals online.

http://www.inboundnow.com/blog/

Sign up to our newsletter

Don't worry, we won't give your email to any third parties
and you can unsubscribe at any time.