Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm using this snippet: http://wpsnipp.com/index.php/functions-php/update-automatically-create-media_buttons-for-shortcode-selection/ which give me a list of all my shortcodes and always prints like [shortcode][/shortcode] even if the shortcode function have the argument of $content = null.

I wonder to know if its possible to pass a conditional to check if the function have the null argument and then print it on the correct way (self-closing).

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.