WordPress action hook

tutor_course/archive/before_loop

Defined by Tutor LMS and fired by 2 plugins in total, running on 90K+ sites between them.

How to use tutor_course/archive/before_loop

It's an action: your callback runs at that point. Nothing needs to be returned. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_action( 'tutor_course/archive/before_loop', function() {
	// Your code runs here.
}, 10, 1 );

Argument names come from Tutor LMS's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

2 plugins that fire tutor_course/archive/before_loop

Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.

  1. Tutor LMS icon Tutor LMS90,000+ installs do_action( 'tutor_course/archive/before_loop' ) templates/archive-course-init.php:44
  2. Lenxel AI LMS icon Lenxel AI LMSFewer than 10 installs do_action( 'tutor_course/archive/before_loop' ) elementor/templates/course-filter/course-init.php:82

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.