LLMS_Person_Handler::voucher_toggle_script()
Output Voucher toggle JS in a quick and shameful manner.
Description Description
..
Return Return
(void)
Source Source
File: includes/class.llms.person.handler.php
public static function voucher_toggle_script() { if ( empty( self::$voucher_script_output ) ) { self::$voucher_script_output = true; echo "<script type=\"text/javascript\"> ( function( $ ) { $( '#llms-voucher-toggle' ).on( 'click', function( e ) { e.preventDefault(); $( '#llms_voucher' ).toggle(); } ); } )( jQuery ); </script>"; } }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |