WordPress filter hook
tutor/course/single/entry-box/is_enrolled
Defined by Tutor LMS and fired by 4 plugins in total, running on 111K+ sites between them.
How to use tutor/course/single/entry-box/is_enrolled
It's a filter: your callback receives the value and 1 more argument, and must return the (changed) value.
Add this to your theme's functions.php or a small custom plugin:
add_filter( 'tutor/course/single/entry-box/is_enrolled', function( $clean, $args ) {
// Change $clean here.
return $clean;
}, 10, 2 );Argument names come from Tutor LMS Divi Modules's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
4 plugins that fire tutor/course/single/entry-box/is_enrolled
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
Tutor LMS90,000+ installs
apply_filters( 'tutor/course/single/entry-box/is_enrolled', ob_get_clean(), get_the_ID() )templates/single/course/course-entry-box.php:216 -
Tutor LMS Elementor Addons20,000+ installs
apply_filters( 'tutor/course/single/entry-box/is_enrolled', ob_get_clean(), get_the_ID() )templates/course/enrollment-editor.php:145 -
Tutor LMS Divi Modules1,000+ installs
apply_filters( 'tutor/course/single/entry-box/is_enrolled', ob_get_clean(), $args['course'] )includes/templates/course/enrolment-editor.php:201 -
Educat Elementor LMS Addon20+ installs
apply_filters( 'tutor/course/single/entry-box/is_enrolled', ob_get_clean(), $course_id )includes/widgets/course-single/course-add-button/view.php:205
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.