LLMS_AJAX_Handler::update_section_order( array $request )

Update course’s sections order


Parameters Parameters

$request

(array) (Required) $_POST data.


Top ↑

Return Return

((array|null))


Top ↑

Source Source

File: includes/class.llms.ajax.handler.php

	public static function update_section_order( $request ) {

		$updated_data;

		foreach ( $request['sections'] as $key => $value ) {

			$section              = new LLMS_Section( $key );
			$updated_data[ $key ] = $section->update(
				array(
					'order' => $value,
				)
			);

		}

		return $updated_data;

	}

Top ↑

User Contributed Notes User Contributed Notes

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