apply_filters( "llms_earned_{$type}_dupcheck", boolean $is_duplicate )
Filters whether or not the given user has already earned a certificate or achievement.
Description Description
The dynamic portion of this hook, {$type}
, refers to the type of engagement, either "achievement" or "certificate".
This filter should return true
or a WP_Error
to denote the certificate has already been earned and false
to denote that it has not.
If true
is returned the default error message will be used.
Parameters Parameters
- $is_duplicate
-
(boolean) Whether or not the engagement has already been earned.
Source Source
Changelog Changelog
Version | Description |
---|---|
6.0.0 | Introduced. |