do_shortcode with variable
-
I need to use the shortcode and php, to do what I do with do_shortcode,
example:
<?php echo do_shortcode(‘[stripe name=”The Awesome Store” description=”The Book of Awesomeness” amount=”500″]’) ;?>But I need to put a variable in the amount field
example:
<?php echo do_shortcode(‘[stripe name=”The Awesome Store” description=”The Book of Awesomeness” amount=”$amount”]’) ;?>How I can do to work with a variable in the amount field?
Thanks
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘do_shortcode with variable’ is closed to new replies.