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

Builds the ld_certificate shortcode output.

Description #

Parameters #


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

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

Default value: array()


(string) (Optional) The shortcode content.

Default value: ''

Return #

(string) The ld_certificate shortcode output.

Source #

File: includes/shortcodes/ld_certificate.php

Changelog #

Version Description
3.1.4 Introduced.