LLMS_User_Certificate::sync_meta( LLMS_User_Certificate $template )

Sync block editor layout properties.


Parameters Parameters

$template

(LLMS_User_Certificate) (Required)


Top ↑

Return Return

(void)


Top ↑

Source Source

File: includes/models/model.llms.user.certificate.php

	protected function sync_meta( $template ) {

		if ( 1 === $template->get_template_version() ) {
			return;
		}

		$props = array(
			'background',
			'height',
			'margins',
			'orientation',
			'size',
			'unit',
			'width',
		);

		foreach ( $props as $prop ) {
			$this->set( $prop, $template->get( $prop ) );
		}

	}

Top ↑

Changelog Changelog

Changelog
Version Description
6.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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