LLMS_Admin_User_Custom_Fields::output_instructors_assistant_scripts()

Output JS to handle user interaction with the instructor’s parent field


Description Description

Display custom field ONLY when creating/editing an instructor’s assistant.


Top ↑

Return Return

(void)


Top ↑

Source Source

File: includes/admin/class.llms.admin.user.custom.fields.php

				$role.on( 'change', function() {
					if ( 'instructors_assistant' === $( this ).val() ) {
						$parent.show();
					} else {
						$parent.hide();
					}
				} ).trigger( 'change' );
			} )( jQuery );
		</script>
		<?php
	}

	/**
	 * Save custom field data for a user
	 *
	 * @since 3.13.0
	 * @since 3.35.0 Sanitize input data.
	 * @since 3.37.15 Use strict comparisons.

Top ↑

Changelog Changelog

Changelog
Version Description
3.13.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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