Closed modemlooper closed 8 years ago
This seems sane, but would like to know the scenario where it is desired/necessary.
when you have a select and you want to show a group of fields based on select.
Was hoping for some pseudo-code to demonstrate. You mean like:
$options = array( 'all', 'this', 'that' );
and selecting 'all' should output: [shortcode this=1 that=1]
?
Thats a good use case, my use case now is select option then only display this group or fields
(For onlookers) we discussed this a bit more and determined that it's better, in most cases, to use the filter to modify shortcode attributes before they are sent back to JS: https://github.com/jtsternberg/Shortcode_Button/blob/master/shortcode-button.php#L348-L362