Fox LMS 1.1.0.2 has 77 actions and 100 filters, read directly from its source code on Nov 18, 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 Fox LMS fires an action
add_action( 'fox_lms_get_template_part', function( $slug, $name, $templates, $path, $args ) {
// Your code runs here.
}, 10, 5 );
// Change a value Fox LMS is about to use
add_filter( 'foxlms_prerequisites_bypass', function( $bypassCourseLimitsAdminUsers, $userId, $ID, $post ) {
// Change $bypassCourseLimitsAdminUsers here.
return $bypassCourseLimitsAdminUsers;
}, 10, 4 );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 includes/course/ld-course-progress.php */ apply_filters( 'foxlms_prerequisites_bypass', $bypassCourseLimitsAdminUsers, $userId, $post->ID, $post ); -
/** * Filters URL that a user should be redirected to after joining a course. */ apply_filters( "foxlms_{$postLabelPrefix}_join_redirect", $loginUrl, $courseId ); -
/** * Filters the block template titles. */ apply_filters( 'foxlms_block_templates_titles', $titles ); -
/** * Filters the date when a course becomes available for a user. */ apply_filters( 'foxlms_course_access_from', $courses[$courseId][$userId], $courseId, $userId ); -
/** * Filters model setting. */ apply_filters( 'foxlms_model_setting', $this->memoize( function () use ($settingKey) { return Settings::get($this->getId(), $settingKey); } ), $settingKey, $this ); -
/** * Filters whether to auto enroll a user into a course or not. */ apply_filters( 'foxlms_override_course_auto_enroll', $autoEnroll, $userId ); -
/** * Fires before an attempt is made to locate and load a template part. */ do_action( 'fox_lms_get_template_part', $slug, $name, $templates, $path, $args ); -
/** * Filter to override previous step completed. */ apply_filters( 'fox_lms_previous_step_completed', $previous_lesson_completed, $post->ID, $userId ); -
/** * Filters the course redirect URL after checking access. */ apply_filters( 'foxlms_access_redirect', $link, $postId ); -
/** * Fires before the course is marked completed. */ do_action( 'foxlms_before_course_completed', [ 'user' => $currentUser, 'course' => get_post($courseId), 'progress' => [$courseId => $courseProgress], 'completed_time' => $courseCompletedTime, ] ); -
/** * Filters the block templates configuration. */ apply_filters( 'foxlms_block_templates_config', [ $directory => [ 'namespace' => self::NAMESPACE, 'dir' => self::DIRECTORY_NAME, 'l10n' => $this->editorL10n(), 'titles' => $this->titles(), ], ] ); -
/** * Filters whether the to bypass cache. */ apply_filters( 'foxlms_bypass_cache', false, $key ); -
/** * Filters the amount of time until the user's course access expires. */ apply_filters( 'foxlms_course_access_expires_on', $courseAccessUpTo, $courseId, $userId ); -
/** * Fires after the course is marked completed. */ do_action( 'foxlms_course_completed', [ 'user' => $currentUser, 'course' => get_post($courseId), 'progress' => [$courseId => $courseProgress], 'course_completed' => $courseCompletedTime, ] ); -
/** * Filters the extended access for a user. */ apply_filters( 'foxlms_course_get_extended_access_timestamp', $timestamp, $courseId, $userId ); -
/** * Filters the current status of the course. */ apply_filters( 'foxlms_course_status', self::getStatusLabel($courseStatusSlug), $courseId, $userId, $courseProgress ); -
/** * Filters the $steps_query_args array use for Course Steps Objects Queries. */ apply_filters( 'foxlms_course_steps_objects_query_args', $stepsQueryArgs, $this->courseId ); -
/** * Filters the $postStatusKeys use for Course Steps Queries. */ apply_filters( 'foxlms_course_steps_post_status_keys', $postStatusKeys ); -
/** * Filters the post_statuses use for Course Steps Queries. */ apply_filters( 'foxlms_course_steps_post_statuses', $postStatuses ); -
/** * Renders course content hook. */ do_action( "foxlms_course_the_content__{$tabId}", $attr ); -
/** * Filter the global currency code. */ apply_filters( 'foxlms_currency_code', $currency ); -
/** * Filters list of currency codes. */ apply_filters( 'foxlms_currency_code_list', $currencyCodes ); -
/** * Filter the global currency symbol. */ apply_filters( 'foxlms_currency_symbol', $currency ); -
/** * Filters the list of custom post types. */ apply_filters( 'foxlms_custom_post_types', self::$postTypes ); -
/** * Fires after deleting user data. */ do_action( 'foxlms_delete_user_data', $user->ID ); -
/** * Filters the payment key */ apply_filters( 'foxlms_generate_transaction_payment_key', $paymentKey, $key ); -
/** * Filter the ID of the requested FoxLMS Page. */ apply_filters( "foxlms_get_{$page}_page_id", $id ); -
/** * Filters price details for a course. */ apply_filters( 'foxlms_get_course_price', $pricing ); -
/** * Filters the value of label settings entered on the settings page. Used to * filter label value in get_label function. */ apply_filters( 'foxlms_get_label', $label, $key ); -
/** * Filter for "foxlms_get_user_activity" hook. */ apply_filters( 'foxlms_get_user_activity', $activity, $args ); -
/** * Filters value of label after converting it to the lowercase. Used to filter * label values in labelToLower function. */ apply_filters( 'foxlms_label_to_lower', $label, $key ); -
/** * Filters the value of the slug after the conversion from the label. Used to * filter slug value in labelToSlug function. */ apply_filters( 'foxlms_label_to_slug', $label, $key ); -
/** * Filters the date when a lesson becomes available for a user. */ apply_filters( 'foxlms_lesson_access_from', $return, $lessonId, $userId ); -
/** * Filters the timestamp of when lesson will be visible after. */ apply_filters( 'foxlms_lesson_access_from__visible_after', $lessonAccessFrom, $lessonId, $userId ); -
/** * Filters the timestamp of when lesson will be available after a specific * date. */ apply_filters( 'foxlms_lesson_access_from__visible_after_specific_date', $visibleAfterSpecificDate, $lessonId, $userId ); -
/** * Fires after the lesson is marked completed. */ do_action( 'foxlms_lesson_completed', [ 'user' => $currentUser, 'course' => get_post($courseId), 'lesson' => $post, 'progress' => $courseProgress, ] ); -
/** * Filters: The footer action content. */ apply_filters( 'foxlms_lesson_the_content_after_actions', $args ); -
/** * Filters model allowed post types. */ apply_filters( 'foxlms_model_allowed_post_types', $allowedPostTypes, static::class, $post ); -
/** * Filters whether a model is a parent. */ apply_filters( 'foxlms_model_is_parent', 0 === $this->post->post_parent, $this->post ); -
/** * Filters whether a product has ended. */ apply_filters( 'foxlms_model_product_can_be_purchased', $can_be_purchased, $this, $user ); -
/** * Filters product display price. */ apply_filters( 'foxlms_model_product_display_price', $this->getFormattedDisplayPrice($price), $price, $this ); -
/** * Filters product display trial price. */ apply_filters( 'foxlms_model_product_display_trial_price', $this->getFormattedDisplayPrice($trialPrice), $trialPrice, $this ); -
/** * Filters the product end date. */ apply_filters( 'foxlms_model_product_end_date', $endDate, $this, $user ); -
/** * Filters whether a product has ended. */ apply_filters( 'foxlms_model_product_has_ended', $hasEnded, $endDate, $this, $user ); -
/** * Filters whether a product has started. */ apply_filters( 'foxlms_model_product_has_started', $has_started, $startDate, $this ); -
/** * Filters whether a product content should be visible. */ apply_filters( 'foxlms_model_product_is_content_visible', $isContentVisible, $this, $user ); -
/** * Filters whether a user has pre-ordered a product. */ apply_filters( 'foxlms_model_product_pre_ordered', $preOrdered, $this, $user ); -
/** * Filters product pricing. */ apply_filters( 'foxlms_model_product_pricing', $pricing_dto, $this, $user ); -
/** * Filters product pricing type. */ apply_filters( 'foxlms_model_product_pricing_type', $this->getPricingSettings()['type'] ?? '', $this ); -
/** * Filters the product seats available. */ apply_filters( 'foxlms_model_product_seats_available', $seatsAvailable, $this, $user ); -
/** * Filters the product seats limit. */ apply_filters( 'foxlms_model_product_seats_limit', $seatsLimit, $this, $user ); -
/** * Filters the product seats used. */ apply_filters( 'foxlms_model_product_seats_used', $seatsUsed, $this, $user ); -
/** * Filters the product start date. */ apply_filters( 'foxlms_model_product_start_date', $startDate, $this, $user ); -
/** * Filters product type label. */ apply_filters( 'foxlms_model_product_type_label', CustomLabel::getLabel( PostTypes::getKey($this->post->post_type) ), $this ); -
/** * Filters whether a user was enrolled to a product. */ apply_filters( 'foxlms_model_product_user_enrolled', $enrolled, $this, $user ); -
/** * Filters the enrollment date for a user. */ apply_filters( 'foxlms_model_product_user_enrollment_date', $enrollmentDate, $this, $userId ); -
/** * Filters whether a user has access to a product. */ apply_filters( 'foxlms_model_product_user_has_access', $hasAccess, $this, $user ); -
/** * Filters whether a user was un enrolled from a product. */ apply_filters( 'foxlms_model_product_user_unenrolled', $unEnrolled, $this, $user ); -
/** * Filters a transaction gateway instance. If the gateway is not found (not * active, not configured), returns an instance of the `UnknownGateway` class. */ apply_filters( 'foxlms_model_transaction_gateway', $gateway, $this ); -
/** * Filters a transaction gateway label. */ apply_filters( 'foxlms_model_transaction_gateway_label', $gateway_label, $this ); -
/** * Filters a transaction gateway name. */ apply_filters( 'foxlms_model_transaction_gateway_name', $gateway_name, $this ); -
/** * Filters whether it's a free transaction made via a coupon. */ apply_filters( 'foxlms_model_transaction_is_free', (bool) $this->getAttribute(self::$metaKeyIsFree, false), $this ); -
/** * Filters whether a transaction is a parent. */ apply_filters( 'foxlms_model_transaction_is_parent', (bool) $this->getAttribute(self::$metaKeyIsParent, false), $this ); -
/** * Filters a transaction product. */ apply_filters( 'foxlms_model_transaction_product', Product::find($productId), $this ); -
/** * Filters whether the object cache is enabled. */ apply_filters( 'foxlms_object_cache_enabled', FOXLMS_CACHE_ENABLED, $key ); -
/** * Fires when the payment button is added. */ do_action( 'foxlms_payment_button_added', $button ); -
/** * Filters payment button HTML right before output. Fires in the end. */ apply_filters( 'foxlms_payment_button_markup', $paymentButtonGenerator->map() ); -
/** * Filters the arguments sent to PayPal. */ apply_filters( 'foxlms_paypal_order_arguments', $orderData, $params, $paymentId ); -
/** * Filters whether to mark a process complete. */ apply_filters( 'foxlms_process_mark_complete', true, $post, $currentUser ); -
/** * Filters whether the course is expired for a user or not. */ apply_filters( 'foxlms_process_user_course_access_expire', true, $userId, $courseId, $courseAccessUpTo ); -
/** * Filters whether the transients are disabled or not. */ apply_filters( 'foxlms_transients_disabled', FOXLMS_TRANSIENTS_DISABLED, $key ); -
/** * Fires after a user's list of courses are updated. */ do_action( 'foxlms_update_course_access', $userId, $courseId, $remove ); -
/** * Fires after updating user activity. */ do_action( 'foxlms_update_user_activity', $args ); -
/** * Filters user activity arguments. */ apply_filters( 'foxlms_update_user_activity_args', $args ); -
/** * Filters user can bypass logic. */ apply_filters( 'foxlms_user_can_bypass', $canBypass, $userId, $context, $args ); -
/** * Fires when the user course access is expired. */ do_action( 'foxlms_user_course_access_expired', $userId, $courseId ); -
/** * Filters whether a user has access to the course. */ apply_filters( 'foxlms_user_has_access_to_course', self::hasAccessFn($postId, $userId), $postId, $userId ); -
/** * Filter whether the upgrader cleared the destination. */ apply_filters( 'upgrader_clear_destination', $removed, $local_destination, $remote_destination, $args['hook_extra'] ); -
/** * Filter the package options before running an update. */ apply_filters( 'upgrader_package_options', $options ); -
/** * Filter the installation response after the installation has finished. */ apply_filters( 'upgrader_post_install', true, $args['hook_extra'], $this->result ); -
/** * Filters whether to return the package. */ apply_filters( 'upgrader_pre_download', false, $package, $this, $hook_extra ); -
/** * Filter the install response before the installation has started. */ apply_filters( 'upgrader_pre_install', true, $args['hook_extra'] ); -
/** * Fire when the upgrader process is complete. */ do_action( 'upgrader_process_complete', $this, $options['hook_extra'] ); -
/** * Filter the source file location for the upgrade package. */ apply_filters( 'upgrader_source_selection', $source, $remote_source, $this, $args['hook_extra'] ); -
do_action( 'fox_lms_sale_banner' ); -
do_action( 'foxlms_courses_grid__card', (object) $course ); -
do_action( 'foxlms_courses_grid__card_list_view', (object) $course ); -
do_action( 'foxlms_page_header' ); -
do_action( 'foxlms_courses_grid__card_content', $course ); -
do_action( 'foxlms_courses_grid__card_header', $course ); -
do_action( 'foxlms_mark_incomplete_process', $userId, $courseId, $stepId ); -
do_action( 'foxlms_modal_content', sprintf( '<div class="%s"></div>', Content::getClassName('response-modal', 'checkout') ), [ 'button' => [ 'content' => '', ], 'close' => [ 'show' => true, ], 'class' => Content::getClassName('sm lg xl xxl', 'modal'), ] ); -
do_action( 'fox_lms_new_announcement', $id ); -
apply_filters( 'foxlms_course_levels', $levels ); -
do_action( 'foxlms_init' ); -
do_action( 'foxlms_lesson_page_content' ); -
do_action( 'foxlms_lesson_page_content_header' ); -
do_action( 'foxlms_lesson_page_sidebar' ); -
do_action( "foxlms_lesson_the_content__{$tabId}" ); -
do_action( 'foxlms_lesson_the_content__attachments' ); -
apply_filters( 'foxlms_payment_gateways', [] ); -
apply_filters( 'fox_lms_course_page_integrations_options', array(), $options ); -
apply_filters( 'fox_lms_course_page_integrations_saves', $options, array_map( 'sanitize_text_field', $_POST) ); -
do_action( 'fox_lms_course_page_woocommerce_integrations', $args ); -
do_action( 'fox_lms_front_end_integrations', $integrations_args, $options, $send_data ); -
do_action( 'fox_lms_front_end_integrations_after_voting', $survey_id ); -
apply_filters( 'fox_lms_front_end_integrations_options', array(), $options ); -
do_action( 'fox_lms_general_settings_integrations' ); -
apply_filters( 'fox_lms_public_course_price', $settings ); -
apply_filters( 'fox_lms_public_payment_method', $settings ); -
apply_filters( 'fox_lms_public_payment_status', $settings ); -
apply_filters( 'fox_lms_settings_page_integrations_saves', $options, array_map( 'sanitize_text_field', $_REQUEST) ); -
do_action( 'foxlms_author_content' ); -
apply_filters( 'foxlms_author_content_stats', $authorStatisticsData, $authorId ); -
do_action( 'foxlms_author_courses' ); -
apply_filters( 'foxlms_block_templates', $slugs ); -
apply_filters( 'foxlms_cache_expire', $expire, $key ); -
do_action( 'foxlms_checkout_page_after' ); -
do_action( 'foxlms_checkout_page_before' ); -
do_action( 'foxlms_checkout_page_content' ); -
do_action( 'foxlms_checkout_page_payment_button_content' ); -
do_action( 'foxlms_checkout_page_payment_content' ); -
do_action( 'foxlms_checkout_page_sidebar' ); -
apply_filters( 'foxlms_checkout_payment_method_description', '' ); -
apply_filters( 'foxlms_checkout_payment_method_excerpt', __('Click the button below to proceed with payment.', 'fox-lms') ); -
apply_filters( 'foxlms_checkout_payment_method_title', __('Payment Method', 'fox-lms') ); -
apply_filters( 'foxlms_color_palettes', $colors ); -
do_action( 'foxlms_completed_button_box', $certificateId, $courseId ); -
do_action( 'foxlms_course_after_entry_box' ); -
do_action( 'foxlms_course_before_entry_box' ); -
do_action( 'foxlms_course_content_tabs', $id, $attr ); -
do_action( 'foxlms_course_description' ); -
do_action( 'foxlms_course_enroll_button' ); -
do_action( 'foxlms_course_entry_box_actions' ); -
do_action( 'foxlms_course_entry_box_certificate' ); -
do_action( 'foxlms_course_entry_box_price' ); -
do_action( 'foxlms_course_featured_image' ); -
do_action( 'foxlms_course_grid_header', $attributes['searchFilter'] ); -
apply_filters( 'foxlms_course_includes_sidebar', $courseData, $courseId, $settings, $withoutText ); -
do_action( 'foxlms_course_intro_video' ); -
do_action( 'foxlms_course_left_bar' ); -
do_action( 'foxlms_course_section_after_lesson', $post ); -
do_action( 'foxlms_course_section_before_lesson', $post ); -
do_action( 'foxlms_course_section_lesson', $post ); -
do_action( 'foxlms_course_section_lesson_header', $post, $isSample ); -
do_action( 'foxlms_course_sidebar' ); -
apply_filters( 'foxlms_course_tabs', $tabs ); -
do_action( 'foxlms_course_the_content_before' ); -
do_action( 'foxlms_email_to_admin', $toAdminMessage ); -
do_action( 'foxlms_email_to_student', $studentEmailMessage ); -
do_action( 'foxlms_email_to_teacher', $teacherEmail, $teacherEmailMessage ); -
do_action( 'foxlms_lesson_content_sidebar' ); -
do_action( 'foxlms_lesson_content_tabs' ); -
apply_filters( 'foxlms_lesson_tabs', $tabs ); -
do_action( 'foxlms_lesson_the_content_after' ); -
do_action( 'foxlms_lesson_the_content_before' ); -
do_action( 'foxlms_login_page_scripts' ); -
apply_filters( 'foxlms_payment_checkout_page_js_settings', array_merge( $payments, [ 'restUrl' => esc_url(rest_url(Fox_Lms_Rest_Payments::getNamespace())), 'nonce' => wp_create_nonce('wp_rest'), 'timestamp' => $timestamp, 'token' => Tokenizer::tokenize($timestamp), 'courseId' => $courseId, 'coursePrice' => $product->getPricing()->price, 'currency' => $product->getPricing()->currency, ] ) ); -
apply_filters( 'foxlms_post_meta_default_values', [] ); -
apply_filters( 'foxlms_post_meta_schema', [] ); -
do_action( 'foxlms_record_gateway_error', $paymentId, $message, $this->getCode() ); -
do_action( 'foxlms_registration_page_scripts' ); -
apply_filters( 'foxlms_user_caps', $caps, $userRole ); -
do_action( 'foxlms_user_dashboard_content' ); -
do_action( "foxlms_user_dashboard_content__{$currentPage}_{$currentTab}" ); -
do_action( "foxlms_user_dashboard_content__{$pageName}" ); -
do_action( "foxlms_user_dashboard_content__settings_{$currentTab}" ); -
do_action( 'foxlms_user_dashboard_content_header' ); -
apply_filters( 'foxlms_user_dashboard_overview_items', $overviewCards ); -
do_action( 'foxlms_user_dashboard_sidebar' ); -
do_action( 'wp_login', $user_info->user_login, $user_info );
Generated from Fox LMS'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: