LLMS_Admin_Analytics::save()

Save method. Saves all fields on current tab


Description Description


Return Return

(void)


Top ↑

Source Source

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

	public static function save() {
		global $current_tab;

		if ( empty( $_REQUEST['_wpnonce'] ) || ! wp_verify_nonce( $_REQUEST['_wpnonce'], 'lifterlms-analytics' ) ) {
			die( __( 'Whoa! something went wrong there!. Please refresh the page and retry.', 'lifterlms' ) );
		}

	   	do_action( 'lifterlms_analytics_save_' . $current_tab );
	    do_action( 'lifterlms_update_options_' . $current_tab );
	    do_action( 'lifterlms_update_options' );

		self::set_message( __( 'Your analytics have been saved.', 'lifterlms' ) );

		do_action( 'lifterlms_analytics_saved' );
	}


Top ↑

User Contributed Notes User Contributed Notes

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