gocodebox / gocodebox/lifterlms

llms_proccess_certificate_engagement not firing

Open
#2,276 7 comments 0 reactions 0 assignees View on GitHub
Type: Documentation Type: Enhancement
Dominant language
PHP
Stars
212
Forks
140
Avg merge
2d 14h
Merged PRs (30d)
19

Description

### Reproduction Steps
add this code to wherever you'd like. I have it in my functions.php file
`function my_llms_engagement_can_process( $can_process, $user_id, $template_id, $related_id, $engagement_id ) {
return false;
}
add_filter( 'llms_proccess_certificate_engagement', 'my_llms_engagement_can_process', 999999999, 5 );`
(can be any priority 1 - 999999) still nothing
Try to generate a certificate based on an engagement. The certificate still generates no matter what.

### Expected Behavior

+ Expected certificate to not generate

### Actual Behavior

+ certificate generated

### Error Messages / Logs

+ None

### System and Environment Information

System Report
```
LifterLMS 6.11.0
WordPress 6.0.2
Nginx, MariaDB, PHP 8, Redis, Object Cache, Page Cache
```

This issue has be recreated:
+ [x] Locally
+ [x] On a staging site
+ [x] On a production website
+ [x] With only LifterLMS and a default theme

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.