LLMS_Admin_Metabox::save_actions( int $post_id )

Perform Save Actions.


Description Description

Triggers actions for before and after save and calls the save method which actually saves metadata.

This is called automatically on save_post_{$post_type} for all screens defined in $this->screens.


Top ↑

Parameters Parameters

$post_id

(int) (Required) WP Post ID of the post being saved.


Top ↑

Return Return

(void)


Top ↑

Source Source

File: includes/abstracts/abstract.llms.admin.metabox.php

			$flags[] = FILTER_REQUIRE_ARRAY;
		}

		$val = llms_filter_input_sanitize_string( INPUT_POST, $field['id'], $flags );

		return $this->save_field_db( $post_id, $field['id'], $val );
	}

	protected function handler_instructors_mb_store( $post_id, $field, $request ) {
		if ( ! llms_current_user_can_edit_product( $post_id ) ) {
			return false;
		}

		$post = llms_get_post( $post_id );

		$instructors = array();

Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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