boolean shortcode options not interpreted correctly
-
according to the examples at https://wpstorelocator.co/document/shortcodes/, specifying a value of
"false"
for e.g. thecountry
option on the[wpsl_address]
shortcode should prevent the country field from being displayed, however this doesn’t work.i’ve tried using double, single and no quotes, but none have any effect. specifying a value of
0
, does work which leads me to suspect that the string"false"
doesn’t end up getting treated as a boolean value, whereas class-frontend.php seems to be expecting boolean values.if ( $atts['country'] && ...
i hope the above makes sense.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘boolean shortcode options not interpreted correctly’ is closed to new replies.