LLMS_User_Certificate::sync_meta( LLMS_User_Certificate $template )
Sync block editor layout properties.
Parameters Parameters
- $template
-
(LLMS_User_Certificate) (Required)
Return Return
(void)
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 ) ); } }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
6.0.0 | Introduced. |