apply_filters( 'llms_certificate_merge_data', array $codes, int $user_id, int $template_id, int $related_id )

Filters the certificate merge data.


Parameters Parameters

$codes

(array) Merge codes and data.

  • 'code'
    (string) The merge code. E.g. {first_name}.
  • 'data'
    (int|string|bool) The merga data to replace the merge code with. E.g. 'Dude'.

$user_id

(int) WP User ID of the user who earned the certificate.

$template_id

(int) WP_Post ID of the certificate template.

$related_id

(int) WP Post ID of the post which triggered the certificate to be awarded.


Top ↑

Source Source

File: includes/models/model.llms.user.certificate.php

View on GitHub



Top ↑

Changelog Changelog

Changelog
Version Description
6.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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