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

Builds the [ld_certificate] shortcode output.


Description Description


Parameters Parameters

$atts

(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()

$content

(Optional) The shortcode content.

Default value: ''


Top ↑

Return Return

(string) The ld_certificate shortcode output.


Top ↑

Source Source

File: includes/shortcodes/ld_certificate.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
3.1.4 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.