LLMS_Rest_Admin_Settings_Webhooks::output_scripts()
Quick and dirty output of JS to power the UI.
Contents
Return Return
(void)
Source Source
File: libraries/lifterlms-rest/includes/admin/class-llms-rest-admin-settings-webhooks.php
public static function output_scripts() { ?> <script> ( function( $ ) { $( '#llms_rest_webhook_topic' ).on( 'change', function() { var $action = $( '#llms_rest_webhook_action' ).closest( 'tr' ); if ( 'action' === $( this ).val() ) { $action.show(); } else { $action.hide(); } } ).trigger( 'change' ); } )( jQuery ); </script> <?php }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.0.0-beta.1 | Introduced. |