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.
// 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
-
/** * This filter is documented in wp-login.php. */ apply_filters( 'login_redirect', $to, $redirect, $user ); -
/** * This action is documented in wp-includes/user.php. */ do_action( 'wp_login', $user->user_login, $user ); -
/** * Filters the ID of the gateway used for a purchase. */ apply_filters( 'cajecb_active_gateway', $id ); -
/** * 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' ); -
/** * 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 ); -
/** * Filters the link text under each course on the course list. */ apply_filters( 'cajecb_course_link_label', __( 'Explore course', 'caje-course-builder' ) ); -
/** * 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 ); -
/** * Filters whether a published course takes enrollments right now. */ apply_filters( 'cajecb_course_open_for_enrollment', $open, $course_id ); -
/** * Filters the schedule start shown to visitors, or null for "when you enroll". */ apply_filters( 'cajecb_course_preview_start', null, $course_id, $now ); -
/** * Filters one course card on the student dashboard. Pro adds progress here. */ apply_filters( 'cajecb_dashboard_course', $item, $enrollment ); -
/** * 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 ); -
/** * Filters an email's body HTML (inside the layout). The Pro email editor uses * this. */ apply_filters( 'cajecb_email_body', $body, $type, $tags, $enrollment ); -
/** * Filters an email subject before merge tags are filled in. */ apply_filters( 'cajecb_email_subject', $subjects[ $type ] ?? '', $type, $tags ); -
/** * Fires after a user is enrolled, or an existing enrollment is restarted. */ do_action( 'cajecb_enrolled', $enrollment, null !== $existing ); -
/** * Fires after an enrollment's status changes, e.g. cajecb_enrollment_revoked. */ do_action( "cajecb_enrollment_{$status}", $enrollment ); -
/** * 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 ); -
/** * Filters one add-on cell in the enrollments table. */ apply_filters( 'cajecb_enrollment_column', '', $column_name, $item ); -
/** * Filters the enrollments table columns. Add-ons add cells such as progress. */ apply_filters( 'cajecb_enrollment_columns', $columns ); -
/** * Fires after a student is removed from a course. */ do_action( 'cajecb_enrollment_deleted', $enrollment ); -
/** * This action is documented in includes/Enrollment/EnrollmentRepository.php */ do_action( 'cajecb_enrollment_expired', $enrollment ); -
/** * Filters the row actions on an enrollment, such as Pro's access extension * link. */ apply_filters( 'cajecb_enrollment_row_actions', $actions, $item ); -
/** * 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 ); -
/** * Filters whether a feature is on. */ apply_filters( 'cajecb_feature_enabled', $enabled, $id, $course_id ); -
/** * Fires once the core is set up. Add-ons register gateways, video providers * and features here. */ do_action( 'cajecb_loaded' ); -
/** * Filters merge tag values, e.g. to add {extend_url}. */ apply_filters( 'cajecb_merge_tags', $values, $enrollment, $context ); -
/** * Filters the current time used for unlocks, expiry and access checks. */ apply_filters( 'cajecb_now', $now ); -
/** * Fires after a payment is confirmed and the buyer enrolled. */ do_action( 'cajecb_order_paid', OrderRepository::find( $order->id ), $enrollment, $via ); -
/** * Fires after a payment is fully refunded. */ do_action( 'cajecb_order_refunded', OrderRepository::find( $order->id ) ); -
/** * Fires when a paid checkout doesn't match its order, so nobody is enrolled. */ do_action( 'cajecb_payment_mismatch', $order, $session ); -
/** * Filters whether CAJE Course Builder Pro is active and licensed. */ apply_filters( 'cajecb_pro_active', false ); -
/** * Filters the Pro plans shown on the Upgrade to Pro screen. */ apply_filters( 'cajecb_pro_plans', $plans ); -
/** * Filters the link on the Pro card. */ apply_filters( 'cajecb_pro_url', UpgradePage::url() ); -
/** * Fires when features are registered. Add-ons call Features::register() here. */ do_action( 'cajecb_register_features' ); -
/** * Fires when the Video tab is saved. */ do_action( 'cajecb_save_video_settings', $post ); -
/** * 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() ); -
/** * 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 ); -
/** * Filters how many accounts one IP address may create per hour. 0 turns the * limit off. */ apply_filters( 'cajecb_signup_rate_limit', 10 ); -
/** * Filters the parameters for a Stripe Checkout Session. */ apply_filters( 'cajecb_stripe_checkout_params', $params, $user_id, $course_id ); -
/** * 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 ); -
/** * 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 ); -
/** * 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 ); -
/** * Filters the Stripe events the webhook endpoint subscribes to. */ apply_filters( 'cajecb_stripe_webhook_events', self::EVENTS ); -
/** * Fires after a student creates an account on a course page. */ do_action( 'cajecb_student_registered', $user_id, absint( $post['course'] ?? 0 ) ); -
/** * 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 ); -
/** * Filters the template file used for a plugin template. */ apply_filters( 'cajecb_template_path', $file, $name ); -
/** * 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' ); -
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.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin 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 thisNot 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: