Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
LLMS_Privacy_Exporters::get_achievement_data( obj $achievement )
Get data for a certificate
Parameters Parameters
- $achievement
-
(obj) (Required) LLMS_User_Certificate.
Return Return
(array)
Source Source
File: includes/privacy/class-llms-privacy-exporters.php
112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 | private static function get_achievement_data( $achievement ) { $data = array (); $data [] = array ( 'name' => __( 'Title' , 'lifterlms' ), 'value' => $achievement ->get( 'title' ), ); $data [] = array ( 'name' => __( 'Description' , 'lifterlms' ), 'value' => $achievement ->get( 'content' ), ); $data [] = array ( 'name' => __( 'Earned Date' , 'lifterlms' ), 'value' => $achievement ->get_earned_date( 'Y-m-d H:i:s' ), ); $data [] = array ( 'name' => __( 'Image' , 'lifterlms' ), 'value' => $achievement ->get_image(), ); return $data ; } |
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.18.0 | Introduced. |