LLMS_Admin_Metabox::save_actions( int $post_id )

Perform Save Actions Triggers actions for before and after save And calls the save method which actually saves metadata


Description Description

This is called automatically on save_post_{$post_type} for screens the metabox is registered to


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

	public function save_actions( $post_id ) {
		// prevent save action from running multiple times on a single load
		if ( isset( $this->_saved ) ) {
			return;
		}

		$this->post = get_post( $post_id );

		$this->_saved = true;
		do_action( 'llms_metabox_before_save_' . $this->id, $post_id, $this );
		$this->save_before( $post_id );
		$this->save( $post_id );
		$this->save_after( $post_id );
		do_action( 'llms_metabox_after_save_' . $this->id, $post_id, $this );
	}

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.