LLMS_Admin_Builder::get_autosave_status()

Retrieve the current user’s builder autosave preferences


Description Description

Defaults to enabled for users who have never configured a setting value.


Top ↑

Return Return

(string) Either "yes" or "no".


Top ↑

Source Source

File: includes/admin/class.llms.admin.builder.php

	protected static function get_autosave_status() {

		$autosave = get_user_option( 'llms_builder_autosave' );
		$autosave = empty( $autosave ) ? 'yes' : $autosave;

		/**
		 * Gets the status of autosave for the builder
		 *
		 * This can be configured on a per-user basis in the user's profile screen on the WP Admin Panel.
		 *
		 * @since 4.14.0
		 *
		 * @param string $autosave Status of autosave for the current user. Either "yes" or "no".
		 */
		return apply_filters( 'llms_builder_autosave_enabled', $autosave );

	}


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.