Comments (2)
Hi Sara,
thanks for reporting this.
Looks like you're using add_action()
the wrong way.
You defined a callback that requires 3 parameters:
function llms_user_enrollment_deleted_function($user_id, $product_id, $enrollment_trigger) {
But you're passing only one parameter:
add_action ('llms_user_enrollment_deleted', 'llms_user_enrollment_deleted_function');
The latter should be:
add_action ('llms_user_enrollment_deleted', 'llms_user_enrollment_deleted_function', 10, 3);
Where 10
is the default priority, and 3
the number of parameters passed to the callback.
See: https://developer.wordpress.org/plugins/hooks/actions/
Also if enabling the WordPress debug (debug log even better), will help you troubleshooting PHP errors in the code.
See: https://lifterlms.com/docs/how-to-debug-a-white-screen/#log
Hope this helps.
from lifterlms.
It worked! thank so much
from lifterlms.
Related Issues (20)
- Make the course catalog page editable in Divi Builder. HOT 3
- Render the TranslatePress [trp_language] shortcode when used in LifterLMS notifications. HOT 2
- Do not re-add deleted "Mark Complete" button and the deleted lesson navigation when a lesson is edited in Elementor. HOT 3
- Alteration of the pagination for dashboard's loops, should only happen by default when rendering the templates in the dashboard
- Number of memberships in the student's dashboard is not limited (and not paginated in My Memberships tab)
- Investigate if there is a bug in the courses API. HOT 3
- Investigate why the Export button at LifterLMS > Reporting > Students is not working on a WPEngine website.
- Respect the date format saved in WordPress Dashboard > Settings > General > Date Format. HOT 1
- Correctly parse the date saved in Course Options > Restrictions > Enrollment Start Date based on WordPress Dashboard > Settings > General > Date Format. HOT 1
- LifterLMS does not respect WordPress Dashboard > Users > Profile > Personal Options > Language when Loco Translate is used. HOT 5
- Course Builder button URL goes to 404: ignores website intalled subdirectory HOT 3
- LifterLMS Navigation Link Block doesn't work properly when the default link is used
- Add `$tab` additional param to 'lifterlms_reporting_tab_cap' filter hook.
- Inline jQuery code should be moved at the footer to ensure that the code will run if jQuery is loaded after footer content. HOT 1
- Full Site Editing Nav Menu Visibility
- Wrong currency symbol for Kazakhstani Tenge.
- Enhancement: Fix incompatibility issue with Beaver Builder "Equalize Heights" column setting. HOT 1
- `get_sidebar` deprecation warning when using FSE theme HOT 1
- Private course/ membership is not visible for filtering in sales page
- We'd like to filter the admin dashboard view when PMPro's "streamlined" mode is on.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lifterlms.