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.


Top ↑

Parameters Parameters

$user

(WP_User) (Required) Viewed user object.


Top ↑

Return Return

(void)


Top ↑

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

	}

Top ↑

Changelog Changelog

Changelog
Version Description
4.14.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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