Support » Plugins and Hacks » Setting OptionTree option to javascript variable

  • LukeAskew

    (@lukeaskew)


    I’m trying to set a javascript variable to an Optiontree option, but it doesn’t seem to be taking. Any help?

    Here’s my code:

    var fundsRaised = "<?php if ( function_exists( 'get_option_tree' ) ){echo get_option_tree( 'total_raised' ); }?>";

  • The topic ‘Setting OptionTree option to javascript variable’ is closed to new replies.