LLMS_Meta_Box_Order_Enrollment::save( int $post_id )

Save method


Parameters Parameters

$post_id

(int) (Required) Post ID of the Order.


Top ↑

Return Return

(void)


Top ↑

Source Source

File: includes/admin/post-types/meta-boxes/class.llms.meta.box.order.enrollment.php

	public function save( $post_id ) {

		$update = llms_filter_input( INPUT_POST, 'llms_update_enrollment_status' );
		if ( ! empty( $update ) ) {
			$this->save_update_enrollment( $post_id );
		}

		$delete = llms_filter_input( INPUT_POST, 'llms_delete_enrollment_status' );
		if ( ! empty( $delete ) ) {
			$this->save_delete_enrollment( $post_id );
		}

	}


Top ↑

Changelog Changelog

Changelog
Version Description
5.9.0 Stop using deprecated FILTER_SANITIZE_STRING.
3.33.0 Added the logic to handle the Enrollment 'deleted' status.
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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