LLMS_Event::set_metas( array $metas, bool $save = false )

Update/Add multiple metas.


Parameters Parameters

$metas

(array) (Required) Associative array of metadata to update/add as key=>val pairs.

$save

(bool) (Optional) If true, saves the updated metadata to the database.

Default value: false


Top ↑

Return Return

(LLMS_Event)


Top ↑

Source Source

File: includes/models/class-llms-event.php

	public function set_metas( $metas, $save = false ) {

		foreach ( $metas as $key => $val ) {
			$this->set_meta( $key, $val );
		}

		if ( $save ) {
			$this->save();
		}

		return $this;

	}


Top ↑

Changelog Changelog

Changelog
Version Description
3.36.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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