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.
Return Return
(void)
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.
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 3.13.0 | Introduced. |