CAJE Course Builder icon
LMS & Education

CAJE Course Builder hooks reference

CAJE Course Builder 1.0.5 has 17 actions and 30 filters, read directly from its source code on Nov 19, 2026. The list updates automatically when a new version is released.

How to use these hooks

Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.

functions.phpyour child theme
// Run your own code when CAJE Course Builder fires an action
add_action( 'wp_login', function( $user_login, $user ) {
	// Your code runs here.
}, 10, 2 );

// Change a value CAJE Course Builder is about to use
add_filter( 'login_redirect', function( $to, $redirect, $user ) {
	// Change $to here.
	return $to;
}, 10, 3 );

Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.

All hooks

  • includes/Frontend/AccountPage.php line 283 · used in 2 places
    /**
     * This filter is documented in wp-login.php.
     */
    apply_filters( 'login_redirect', $to, $redirect, $user );
  • includes/Frontend/AccountPage.php line 316 · used in 2 places
    /**
     * This action is documented in wp-includes/user.php.
     */
    do_action( 'wp_login', $user->user_login, $user );
  • includes/Payments/GatewayRegistry.php line 48
    /**
     * Filters the ID of the gateway used for a purchase.
     */
    apply_filters( 'cajecb_active_gateway', $id );
  • includes/Admin/CurriculumPage.php line 169
    /**
     * Fires when the course builder's scripts load. Add-ons enqueue scripts that
     * fill the builder's slots here, such as a video upload control.
     */
    do_action( 'cajecb_builder_enqueue_scripts' );
  • includes/Frontend/Pages.php line 134
    /**
     * Filters the call to action on a course page for someone who isn't enrolled,
     * such as a Buy button. Empty by default.
     */
    apply_filters( 'cajecb_course_cta', '', $course->ID, $user_id );
  • includes/Frontend/Pages.php line 143
    /**
     * Filters a message shown at the top of the course outline, such as "You're
     * enrolled!" after checkout. Empty by default.
     */
    apply_filters( 'cajecb_course_notice', '', $course->ID );
  • includes/Payments/Checkout.php line 232
    /**
     * Filters whether a published course takes enrollments right now.
     */
    apply_filters( 'cajecb_course_open_for_enrollment', $open, $course_id );
  • includes/Courses/Schedule.php line 62
    /**
     * Filters the schedule start shown to visitors, or null for "when you enroll".
     */
    apply_filters( 'cajecb_course_preview_start', null, $course_id, $now );
  • includes/Frontend/Dashboard.php line 215
    /**
     * Filters one course card on the student dashboard. Pro adds progress here.
     */
    apply_filters( 'cajecb_dashboard_course', $item, $enrollment );
  • includes/Admin/CourseEditor.php line 70
    /**
     * Filters the settings the course builder and editor panels get. Set
     * customStart when an add-on fills the CajecbReleaseSchedule slot with its own
     * start options, so the builder drops its "starts when they enroll" line.
     */
    apply_filters( 'cajecb_editor_script_data', $data );
  • includes/Notifications/Mailer.php line 86
    /**
     * Filters an email's body HTML (inside the layout). The Pro email editor uses
     * this.
     */
    apply_filters( 'cajecb_email_body', $body, $type, $tags, $enrollment );
  • includes/Notifications/Emails.php line 85
    /**
     * Filters an email subject before merge tags are filled in.
     */
    apply_filters( 'cajecb_email_subject', $subjects[ $type ] ?? '', $type, $tags );
  • includes/Enrollment/EnrollmentRepository.php line 108
    /**
     * Fires after a user is enrolled, or an existing enrollment is restarted.
     */
    do_action( 'cajecb_enrolled', $enrollment, null !== $existing );
  • includes/Enrollment/EnrollmentRepository.php line 136
    /**
     * Fires after an enrollment's status changes, e.g. cajecb_enrollment_revoked.
     */
    do_action( "cajecb_enrollment_{$status}", $enrollment );
  • includes/Payments/Checkout.php line 109
    /**
     * Filters what a visitor sees when they can't enroll in a published course
     * right now, e.g. because payments aren't set up or a class has closed.
     */
    apply_filters( 'cajecb_enrollment_closed_message', __( 'Enrollment opens soon.', 'caje-course-builder' ), $course_id );
  • includes/Admin/EnrollmentsTable.php line 297
    /**
     * Filters one add-on cell in the enrollments table.
     */
    apply_filters( 'cajecb_enrollment_column', '', $column_name, $item );
  • includes/Admin/EnrollmentsTable.php line 58
    /**
     * Filters the enrollments table columns. Add-ons add cells such as progress.
     */
    apply_filters( 'cajecb_enrollment_columns', $columns );
  • includes/Enrollment/EnrollmentRepository.php line 265
    /**
     * Fires after a student is removed from a course.
     */
    do_action( 'cajecb_enrollment_deleted', $enrollment );
  • includes/Enrollment/EnrollmentRepository.php line 227
    /**
     * This action is documented in includes/Enrollment/EnrollmentRepository.php
     */
    do_action( 'cajecb_enrollment_expired', $enrollment );
  • includes/Admin/EnrollmentsTable.php line 169
    /**
     * Filters the row actions on an enrollment, such as Pro's access extension
     * link.
     */
    apply_filters( 'cajecb_enrollment_row_actions', $actions, $item );
  • includes/Courses/Schedule.php line 43
    /**
     * Filters when a purchase or free enrollment's schedule starts. Week 1 unlocks
     * then, and every later unlock counts from it. A future date means the student
     * waits for it; a past one means they catch up.
     */
    apply_filters( 'cajecb_enrollment_start', $now, $course_id, $user_id );
  • includes/Core/Features.php line 112
    /**
     * Filters whether a feature is on.
     */
    apply_filters( 'cajecb_feature_enabled', $enabled, $id, $course_id );
  • includes/Core/Plugin.php line 76
    /**
     * Fires once the core is set up. Add-ons register gateways, video providers
     * and features here.
     */
    do_action( 'cajecb_loaded' );
  • includes/Notifications/MergeTags.php line 55
    /**
     * Filters merge tag values, e.g. to add {extend_url}.
     */
    apply_filters( 'cajecb_merge_tags', $values, $enrollment, $context );
  • includes/Core/Clock.php line 40
    /**
     * Filters the current time used for unlocks, expiry and access checks.
     */
    apply_filters( 'cajecb_now', $now );
  • includes/Payments/StripeGateway.php line 316
    /**
     * Fires after a payment is confirmed and the buyer enrolled.
     */
    do_action( 'cajecb_order_paid', OrderRepository::find( $order->id ), $enrollment, $via );
  • includes/Payments/StripeGateway.php line 362
    /**
     * Fires after a payment is fully refunded.
     */
    do_action( 'cajecb_order_refunded', OrderRepository::find( $order->id ) );
  • includes/Payments/StripeGateway.php line 273
    /**
     * Fires when a paid checkout doesn't match its order, so nobody is enrolled.
     */
    do_action( 'cajecb_payment_mismatch', $order, $session );
  • includes/Admin/UpgradePage.php line 41
    /**
     * Filters whether CAJE Course Builder Pro is active and licensed.
     */
    apply_filters( 'cajecb_pro_active', false );
  • includes/Admin/UpgradePage.php line 93
    /**
     * Filters the Pro plans shown on the Upgrade to Pro screen.
     */
    apply_filters( 'cajecb_pro_plans', $plans );
  • includes/Admin/Settings/FeaturesTab.php line 92
    /**
     * Filters the link on the Pro card.
     */
    apply_filters( 'cajecb_pro_url', UpgradePage::url() );
  • includes/Core/Features.php line 61
    /**
     * Fires when features are registered. Add-ons call Features::register() here.
     */
    do_action( 'cajecb_register_features' );
  • includes/Admin/Settings/VideoTab.php line 74
    /**
     * Fires when the Video tab is saved.
     */
    do_action( 'cajecb_save_video_settings', $post );
  • includes/Admin/SettingsPage.php line 54
    /**
     * Filters the settings tabs. Each tab has a label, a render callback and an
     * optional save callback that receives the posted fields.
     */
    apply_filters( 'cajecb_settings_tabs', array() );
  • includes/Frontend/Signup.php line 119
    /**
     * Filters errors for a new student account, e.g. for anti-spam checks. Return
     * a WP_Error with an error to stop the account being created.
     */
    apply_filters( 'cajecb_signup_errors', new WP_Error(), $email, $post );
  • includes/Frontend/Signup.php line 268
    /**
     * Filters how many accounts one IP address may create per hour. 0 turns the
     * limit off.
     */
    apply_filters( 'cajecb_signup_rate_limit', 10 );
  • includes/Payments/StripeGateway.php line 174
    /**
     * Filters the parameters for a Stripe Checkout Session.
     */
    apply_filters( 'cajecb_stripe_checkout_params', $params, $user_id, $course_id );
  • includes/Payments/StripeGateway.php line 224
    /**
     * Fires for every verified, first-seen Stripe event, after the plugin's own
     * handling. Add-ons handle the events they subscribed to here.
     */
    do_action( 'cajecb_stripe_event', (string) $event['type'], $object );
  • includes/Payments/StripeGateway.php line 302
    /**
     * Fires once when an add-on's purchase is paid, instead of the usual
     * single-course enrollment. The dynamic part is the session's cajecb_kind
     * metadata, e.g. cajecb_stripe_fulfill_bundle.
     */
    do_action( "cajecb_stripe_fulfill_{$kind}", OrderRepository::find( $order->id ), $session, $via );
  • includes/Payments/StripeGateway.php line 290
    /**
     * Fires once when a Checkout Session's payment is confirmed, before the buyer
     * is enrolled. Add-ons read the session here, e.g. which coupon was used.
     */
    do_action( 'cajecb_stripe_session_paid', OrderRepository::find( $order->id ), $session );
  • includes/Payments/StripeGateway.php line 52
    /**
     * Filters the Stripe events the webhook endpoint subscribes to.
     */
    apply_filters( 'cajecb_stripe_webhook_events', self::EVENTS );
  • includes/Frontend/Signup.php line 152
    /**
     * Fires after a student creates an account on a course page.
     */
    do_action( 'cajecb_student_registered', $user_id, absint( $post['course'] ?? 0 ) );
  • includes/Scheduler/Sweep.php line 106
    /**
     * Filters how many due emails one sweep may handle. Sent, failed and skipped
     * emails all count, so logging skips can't run past the batch.
     */
    apply_filters( 'cajecb_sweep_batch_size', 200 );
  • includes/Frontend/Templates.php line 139
    /**
     * Filters the template file used for a plugin template.
     */
    apply_filters( 'cajecb_template_path', $file, $name );
  • includes/Admin/Settings/VideoTab.php line 59
    /**
     * Fires at the end of the Video tab, inside its form. Add-ons print their
     * video host's settings here and save them on `cajecb_save_video_settings`.
     */
    do_action( 'cajecb_video_settings' );
  • includes/Frontend/Signup.php line 244
    apply_filters( 'illegal_user_logins', array() );

Generated from CAJE Course Builder's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.

Done for you

Rather have it built for you?

Tell us what should change and we’ll write and test the code using these hooks.

Plugin customisation

from $149

New features or changed behaviour, without editing the plugin’s files.

  • Built as a companion plugin, so updates never wipe it
  • Exact quote before we start
  • Tested on staging, then deployed

Typical turnaround: 3–7 business days

Choose this

Not sure which fits? Describe what you need and we’ll suggest the simplest option.

Can't find the right hook?

We can build the customisation for you. Describe what you need: