Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

LLMS_Admin_Page_Status::output_tools_content()

Output the HTML for the tools tab


Description Description


Return Return

(void)


Top ↑

Source Source

File: includes/admin/class.llms.admin.page.status.php

	private static function output_tools_content() {

		$tools = apply_filters( 'llms_status_tools', array(

			'automatic-payments' => array(
				'description' => __( 'Allows you to choose to enable or disable automatic recurring payments which may be disabled on a staging site.', 'lifterlms' ),
				'label' => __( 'Automatic Payments', 'lifterlms' ),
				'text' => __( 'Reset Automatic Payments', 'lifterlms' ),
			),

			'clear-sessions' => array(
				'description' => __( 'Manage User Sessions. LifterLMS creates custom user sessions to manage, payment processing, quizzes and user registration. If you are experiencing issues or incorrect error messages are displaying. Clearing out all of the user session data may help.', 'lifterlms' ),
				'label' => __( 'User Sessions', 'lifterlms' ),
				'text' => __( 'Clear All Session Data', 'lifterlms' ),
			),

			'reset-tracking' => array(
				'description' => __( 'If you opted into LifterLMS Tracking and no longer wish to participate, you may opt out here.', 'lifterlms' ),
				'label' => __( 'Reset Tracking Settings', 'lifterlms' ),
				'text' => __( 'Reset Tracking Settings', 'lifterlms' ),
			),

			'clear-cache' => array(
				'description' => __( 'Clears the cached data displayed on various reporting screens. This does not affect actual student progress, it only clears cached progress data. This data will be regenerated the next time it is accessed.', 'lifterlms' ),
				'label' => __( 'Student Progress Cache', 'lifterlms' ),
				'text' => __( 'Clear cache', 'lifterlms' ),
			),

			'setup-wizard' => array(
				'description' => __( 'If you want to run the LifterLMS Setup Wizard again or skipped it and want to return now, click below.', 'lifterlms' ),
				'label' => __( 'Setup Wizard', 'lifterlms' ),
				'text' => __( 'Return to Setup Wizard', 'lifterlms' ),
			),

		) );

		?>
		<form action="<?php echo esc_url( self::get_url( 'tools' ) ); ?>" method="POST">
			<table class="llms-table text-left zebra">
			<?php foreach ( $tools as $slug => $data ) : ?>
				<tr>
					<th><?php echo $data['label']; ?></th>
					<td>
						<p><?php echo $data['description']; ?></p>
						<button class="llms-button-secondary small" name="llms_tool" type="submit" value="<?php echo $slug; ?>"><?php echo $data['text']; ?></button>
					</td>
				</tr>
			<?php endforeach; ?>
			</table>
			<?php wp_nonce_field( 'llms_tool' ); ?>
		</form>
		<?php

	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.11.2 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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





Permalink: