LLMS_User_Certificate::get_margins( boolean $with_units = false )
Retrieves the certificate’s margins.
Parameters Parameters
- $with_units
-
(boolean) (Optional) Whether or not to include the percent sign unit in the return.
Default value: false
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 )
.
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 . '%'; }, $margins ); } return $margins; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
6.0.0 | Introduced. |