LLMS_Rest_Admin_Settings_Webhooks::output_scripts()

Quick and dirty output of JS to power the UI.


Return Return

(void)


Top ↑

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
	}

Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0-beta.1 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.