I think the title of my question says it all.
When creating a shortcode, I've seen some people do do_shortcode($content)
instead of $content
.
What is the difference?
Another thing, let's say I have a shortcode [hello]World[/hello]
. Wouldn't returning do_shortcode($content)
result in do_shortcode('World')
?
From the codex, the examples given are as such, do_shortcode('[hello]')
So what will returning do_shortcode($content)
interpret? (in the case of [hello]
)
Any practical examples or clear explanations would be greatly appreciated. Thanks.