LLMS_User_Certificate::get_margins( boolean $with_units = false )

Retrieves the certificate’s margins.

Parameters Parameters


(boolean) (Optional) Whether or not to include the percent sign unit in the return.

Default value: false

Top ↑

Return Return

(float[]) Array of floats representing the margins. The margins are listed as they would be when defining the margins of an element in CSS: array( $left, $top, $right, $bottom ).

Top ↑

Source Source

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

	public function get_margins( $with_units = false ) {

		$margins = $this->get( 'margins' );

		if ( $with_units ) {
			$margins = array_map(
				function( $margin ) {
					return $margin . '%';

		return $margins;

Top ↑

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.