Browse: Home / Functions /


ld_certificate_shortcode( array $atts = array(),  string $content = '',  string $shortcode_slug = 'ld_certificate' )

Builds the [ld_certificate] shortcode output.

Description #

Parameters #


(array) (Optional) An array of shortcode attributes.

  • 'course_id'
    (int) Course ID. Default 0.
  • 'quiz_id'
    (int) Quiz ID. Default 0.
  • 'user_id'
    (int) User ID. Default current user ID.
  • 'label'
    (string) Certificate label. Default translatable 'Certificate' string.
  • 'class'
    (string) Certificate CSS class. Default 'button'.
  • 'content'
    (string) Shortcode context.
  • 'callback'
    (callable) Callback for certificate button HTML output.

Default value: array()


(string) (Optional) The shortcode content.

Default value: ''


(string) (Optional) The shortcode slug.

Default value: 'ld_certificate'

Return #

(string) The ld_certificate shortcode output.

Source #

File: includes/shortcodes/ld_certificate.php

Changelog #

Version Description
3.1.4 Introduced.