llms_certificate_actions( LLMS_User_Certificate $certificate )
Loads the certificate actions template.
Parameters Parameters
- $certificate
-
(LLMS_User_Certificate) (Required) Certificate object.
Return Return
(void)
Source Source
File: includes/functions/llms.functions.templates.certificates.php
function llms_certificate_actions( $certificate ) { if ( ! $certificate->can_user_manage() ) { return; } $dashboard_url = get_permalink( llms_get_page_id( 'myaccount' ) ); $cert_ep_enabled = LLMS_Student_Dashboard::is_endpoint_enabled( 'view-certificates' ); $back_link = $cert_ep_enabled ? llms_get_endpoint_url( 'view-certificates', '', $dashboard_url ) : $dashboard_url; $back_text = $cert_ep_enabled ? __( 'All certificates', 'lifterlms' ) : __( 'Dashboard', 'lifterlms' ); $is_template = 'llms_certificate' === $certificate->get( 'type' ); $is_sharing_enabled = $certificate->is_sharing_enabled(); llms_get_template( 'certificates/actions.php', compact( 'certificate', 'back_link', 'back_text', 'is_sharing_enabled', 'is_template' ) ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
6.0.0 | Introduced. |