LLMS_Admin_User_Custom_Fields::output_personal_options( WP_User $user )
Output personal option fields
Description Description
Currently adds a single option row for controlling auto-save behavior on the course builder.
Parameters Parameters
- $user
-
(WP_User) (Required) Viewed user object.
Return Return
(void)
Source Source
File: includes/admin/class.llms.admin.user.custom.fields.php
public function output_personal_options( $user ) { if ( ! user_can( $user, 'edit_courses' ) ) { return; } $autosave = get_user_option( 'llms_builder_autosave', $user->ID ); $autosave = empty( $autosave ) ? 'yes' : $autosave; ?> <tr class="llms-builder-autosave llms-builder-autosave-wrap"> <th scope="row"><?php _e( 'Course Builder Autosave', 'lifterlms' ); ?></th> <td> <label for="llms_builder_autosave"> <input name="llms_builder_autosave" type="checkbox" id="llms_builder_autosave" value="yes"<?php checked( 'yes', $autosave ); ?>> <?php _e( 'Automatically save changes when using the course builder', 'lifterlms' ); ?> </label><br> </td> </tr> <?php }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
4.14.0 | Introduced. |