Sensei LMS 4.27.0 has 206 actions and 450 filters, read directly from its source code on Nov 17, 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 Sensei LMS fires an action
add_action( 'sensei_after_email_content', function( $sensei_email_data ) {
// Your code runs here.
}, 10, 1 );
// Change a value Sensei LMS is about to use
add_filter( 'sensei_email_heading', function( $_, $template ) {
// Change $_ here.
return $_;
}, 10, 2 );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
-
sensei_email_heading
filter/** * Filter the email header for the admin-teacher-new-course-created template */ apply_filters( 'sensei_email_heading', __( 'New course created.', 'sensei-lms' ), $template ); -
sensei_email_subject
filter/** * Filter the email subject for the the admin-teacher-new-course-created * template. */ apply_filters( 'sensei_email_subject', '[' . get_bloginfo( 'name', 'display' ) . '] ' . __( 'New course created by', 'sensei-lms' ) . ' ' . $teacher->display_name, $template ); -
sensei_after_email_content
action/** * Action hook after email content. */ do_action( 'sensei_after_email_content', $sensei_email_data['template'] ); -
sensei_before_email_content
action/** * Action hook before email content. */ do_action( 'sensei_before_email_content', $template ); -
sensei_email_data
filter/** * Filter the sensei email data for the admin-teacher-new-course-created * template */ apply_filters( 'sensei_email_data', $email_data, $template ); -
sensei_after_sending_email
action/** * Fires after sending the email. */ do_action( 'sensei_after_sending_email' ); -
sensei_before_mail
action/** * Fires before sending the email. */ do_action( 'sensei_before_mail', $recipient ); -
sensei_comments_per_page
filter/** * Filter the number of items per page for the comments list table. */ apply_filters( 'sensei_comments_per_page', $per_page, 'sensei_comments' ); -
/** * Filter the search button text. */ apply_filters( 'sensei_list_table_search_button_text', __( 'Search Users', 'sensei-lms' ) ); -
sensei_pagination
action/** * Fires when the pagination is displayed. */ do_action( 'sensei_pagination' ); -
sensei_single_title
filter/** * Filter Sensei single title */ apply_filters( 'sensei_single_title', $title, $post->post_type ); -
/** * Filter the row data for the Analysis Overview list table. */ apply_filters( 'sensei_analysis_overview_column_data', array( 'title' => $course_title, 'last_activity' => $last_activity_date, 'completions' => $course_completions, 'average_progress' => $average_course_progress, 'average_grade' => $average_grade, 'days_to_completion' => $average_completion_days, ), $item, $this ); -
sensei_answer_text
filter/** * Filter user answer text. */ apply_filters( 'sensei_answer_text', $_user_answer ); -
/** * Filter the submission ID when getting all quiz grades. */ apply_filters( 'sensei_quiz_grade_get_all_submission_id', $submission_id, 'comments' ); -
grading_wrapper_container
action/** * Fires before the container of the Grading page. This hook allows to wrap the * container. */ do_action( 'grading_wrapper_container', 'top' ); -
/** * Filter the columns that are going to be used in the Analysis Overview list * table. */ apply_filters( 'sensei_analysis_overview_columns', $columns, $this ); -
/** * Filter the sortable columns that are going to be used in the Analysis * Overview list table. */ apply_filters( 'sensei_analysis_overview_columns_sortable', $columns, $this ); -
/** * Fires after course meta is displayed. */ do_action( 'sensei_course_meta_inside_after', $course->ID ); -
/** * Fires before the course meta is displayed. */ do_action( 'sensei_course_meta_inside_before', $course->ID ); -
/** * Fires before rendering the students page container. This hook allows to wrap * the container. */ do_action( 'sensei_learner_admin_wrapper_container', 'top' ); -
/** * Filters the submission ID when getting all quiz answers. */ apply_filters( 'sensei_quiz_answer_get_all_submission_id', $submission_id, 'comments' ); -
sensei_results_links
filter/** * Filter results links. */ apply_filters( 'sensei_results_links', '', $course_id ); -
sensei_count_statuses_args
filter/** * This filter is documented in includes/class-sensei-grading.php */ apply_filters( 'sensei_count_statuses_args', array( 'type' => 'lesson' ) ); -
/** * Filter the course ID for a course progress we want to get. */ apply_filters( 'sensei_course_progress_get_course_id', $course_id ); -
sensei_frontend_messages
action/** * Fires when the frontend messages are displayed. */ do_action( 'sensei_frontend_messages' ); -
sensei_grading_after_headers
action/** * Fires after the headers of the Grading page. */ do_action( 'sensei_grading_after_headers' ); -
/** * Filter lesson id for lesson progress creation. */ apply_filters( 'sensei_lesson_progress_get_lesson_id', $lesson_id ); -
sensei_quiz_create
action/** * Fires after a quiz is created while saving the course structure. */ do_action( 'sensei_quiz_create', $quiz_id, $lesson_id ); -
/** * Filter the list of admin pages where the admin custom styles should be * loaded. */ apply_filters( 'sensei_scripts_allowed_post_type_pages', array( 'edit.php', 'post-new.php', 'post.php', 'edit-tags.php' ) ); -
/** * Filter the list of post types where the admin custom styles should be * loaded. */ apply_filters( 'sensei_scripts_allowed_post_types', array( 'lesson', 'course', 'question' ) ); -
sensei_user_course_end
action/** * Fires when a user completes a course and is redirected to the course * completed page. */ do_action( 'sensei_user_course_end', $user_id, $course_id ); -
the_content
filter/** * Already documented within WordPress Core */ apply_filters( 'the_content', wp_kses_post( $question_description ) ); -
analysis_wrapper_container
action/** * Fires before the container on the Reports page. This hook allows to wrap the * container. */ do_action( 'analysis_wrapper_container', 'top' ); -
grading_after_container
action/** * Fires after the container of the Grading page. */ do_action( 'grading_after_container' ); -
grading_before_container
action/** * Fires before the container of the Grading page. */ do_action( 'grading_before_container' ); -
learners_wrapper_container
action/** * Fires before rendering the students page container. This hook allows to wrap * the container. */ do_action( 'learners_wrapper_container', 'top' ); -
sensei_admin_notices
filter/** * Filters the admin notices. */ apply_filters( 'sensei_admin_notices', $notices, $max_age ); -
/** * Fires after headers on the Reports page. */ do_action( 'sensei_analysis_after_headers' ); -
/** * Filter the lesson completions activity arguments for the Course Analysis * list table. The count uses post_id and status. The type and count keys * remain for compatibility. */ apply_filters( 'sensei_analysis_lesson_completions', $completion_args, $item ); -
/** * Filter the lesson student count arguments for the Course Analysis list * table. The type key remains for compatibility; the count always uses lesson * status activity. */ apply_filters( 'sensei_analysis_lesson_learners', $lesson_args, $item ); -
/** * Filter the query arguments for courses in the Analysis Overview list table. */ apply_filters( 'sensei_analysis_overview_filter_courses', $course_args ); -
/** * Filter the query arguments for lessons in the Analysis Overview list table. */ apply_filters( 'sensei_analysis_overview_filter_lessons', $lessons_args ); -
/** * Filter the query arguments for users in the Analysis Overview list table. */ apply_filters( 'sensei_analysis_overview_filter_users', $args ); -
sensei_before_main_content
action/** * Fires before the main content is output. */ do_action( 'sensei_before_main_content' ); -
sensei_count_statuses
filter/** * This filter is documented in includes/class-sensei-grading.php */ apply_filters( 'sensei_count_statuses', $counts, 'sensei_lesson_status' ); -
/** * Filter the course ID for a created course progress. */ apply_filters( 'sensei_course_progress_create_course_id', $course_id ); -
/** * Filter the course ID for a course progress we want to delete. */ apply_filters( 'sensei_course_progress_delete_for_course_course_id', $course_id ); -
/** * Filter the course ID for a course progress we want to find. */ apply_filters( 'sensei_course_progress_find_course_id', $course_id ); -
/** * Filter the course ID for a course progress we want to check. */ apply_filters( 'sensei_course_progress_has_course_id', $course_id ); -
sensei_course_slug
filter/** * Filter the course slug. */ apply_filters( 'sensei_course_slug', _x( 'course', 'post type single url slug', 'sensei-lms' ) ); -
/** * Filters whether the course feature to allow students to preview lessons is * enabled. */ apply_filters( 'sensei_feature_open_access_courses', true ); -
/** * Filter the image size. */ apply_filters( "sensei_get_image_size_{$image_size}", '' ); -
/** * Filters the timeout value for the HTTP request which retrieves an external * attachment. */ apply_filters( 'sensei_import_attachment_request_timeout', 10 ); -
/** * Fires after rendering the students page container. */ do_action( 'sensei_learner_admin_after_container' ); -
/** * Fires before rendering the students page. */ do_action( 'sensei_learner_admin_before_container' ); -
sensei_learner_admin_extra
action/** * Fires after rendering the main content of the students page. Allowing for * additional content to be added. */ do_action( 'sensei_learner_admin_extra' ); -
/** * Filter the title for the learner profile page. */ apply_filters( 'sensei_learner_profile_courses_heading', sprintf( __( 'Courses %s is taking', 'sensei-lms' ), $name ) ); -
/** * Filters the learner profile URL base. */ apply_filters( 'sensei_learner_profiles_url_base', __( 'learner', 'sensei-lms' ) ); -
sensei_learners_filter_users
filter/** * Filter arguments for the learners activity on the student management screen. */ apply_filters( 'sensei_learners_filter_users', $activity_args ); -
/** * Filter sensei_learners_main_column_data */ apply_filters( 'sensei_learners_main_column_data', array( 'title' => '<strong>' . '<a class="row-title" href="' . esc_url( admin_url( 'user-edit.php?user_id=' . $student->user_id ) ) . '" title="' . esc_attr( $a_title ) . '">' . esc_html( $title ) . '</a>' . '</strong>' . '<div class="row-actions">' . implode( ' | ', $row_actions ) . '</div>', 'date_started' => $date_input, 'date_completed' => ( 'complete' === $student->status ) ? $student->com... ); -
/** * Filter the text displayed when no items are found. */ apply_filters( 'sensei_learners_no_items_text', $text ); -
sensei_learners_search_users
filter/** * Allows user search arguments modification in learner management. */ apply_filters( 'sensei_learners_search_users', $user_args ); -
/** * Filter course id for lesson progress counting. */ apply_filters( 'sensei_lesson_progress_count_course_id', $course_id ); -
/** * Filter lesson id for lesson progress creation. */ apply_filters( 'sensei_lesson_progress_create_lesson_id', $lesson_id ); -
/** * Filter lesson id for lesson progress deletion. */ apply_filters( 'sensei_lesson_progress_delete_for_lesson_lesson_id', $lesson_id ); -
/** * Filter lesson id when finding lesson progress. */ apply_filters( 'sensei_lesson_progress_find_lesson_id', $lesson_id ); -
/** * Filter lesson id for lesson progress check. */ apply_filters( 'sensei_lesson_progress_has_lesson_id', $lesson_id ); -
sensei_lesson_video
action/** * Fire action when a lesson video expected. */ do_action( 'sensei_lesson_video', get_the_ID() ); -
sensei_my_courses_after
action/** * Fires after the user courses are displayed. */ do_action( 'sensei_my_courses_after' ); -
sensei_my_courses_before
action/** * Fires before the user courses are displayed. */ do_action( 'sensei_my_courses_before' ); -
/** * Fires after the user course content is displayed inside a container. */ do_action( 'sensei_my_courses_content_inside_after' ); -
/** * Fires before the user course content is displayed inside a container. */ do_action( 'sensei_my_courses_content_inside_before' ); -
/** * Filter the answer message CSS classes. */ apply_filters( 'sensei_question_answer_message_css_class', $answer_notes_classnames, $lesson_id, $question_id, get_current_user_id(), $answer_correct ); -
sensei_question_image_size
filter/** * Filter the size of the question image. */ apply_filters( 'sensei_question_image_size', 'medium', $question_id ); -
sensei_question_show_answers
filter/** * Allow dynamic overriding of whether to show question answers or not */ apply_filters( 'sensei_question_show_answers', $show_correct_answers, $question_id, $quiz_id, $lesson_id, get_current_user_id() ); -
sensei_question_title
filter/** * Filters the question title. */ apply_filters( 'sensei_question_title', $question->post_title ); -
/** * Filters the question ID when quiz answer is created. */ apply_filters( 'sensei_quiz_answer_create_question_id', $question_id ); -
/** * Filters the submission ID when quiz answer is created. */ apply_filters( 'sensei_quiz_answer_create_submission_id', $submission->get_id(), 'comments' ); -
/** * Filters the submission ID when deleting all quiz answers. */ apply_filters( 'sensei_quiz_answer_delete_all_submission_id', $submission->get_id(), 'comments' ); -
/** * Filters the question ID when quiz grade is created. */ apply_filters( 'sensei_quiz_grade_create_question_id', $question_id ); -
/** * Filters the submission ID when deleting all quiz grades. */ apply_filters( 'sensei_quiz_grade_delete_all_submission_id', $submission->get_id(), 'comments' ); -
/** * Filter quiz id for quiz progress creation. */ apply_filters( 'sensei_quiz_progress_create_quiz_id', $quiz_id ); -
/** * Filter quiz id for quiz progress deletion. */ apply_filters( 'sensei_quiz_progress_delete_for_quiz_quiz_id', $quiz_id ); -
/** * Filter quiz id for quiz progress retrieval. */ apply_filters( 'sensei_quiz_progress_find_quiz_id', $id ); -
/** * Filter quiz id for quiz progress retrieval. */ apply_filters( 'sensei_quiz_progress_get_quiz_id', $quiz_id ); -
/** * Filter quiz id for quiz progress existence check. */ apply_filters( 'sensei_quiz_progress_has_quiz_id', $quiz_id ); -
/** * Fires after rendering the quiz question. */ do_action( 'sensei_quiz_question_inside_after', sensei_get_the_question_id() ); -
/** * Fires before rendering the quiz question. */ do_action( 'sensei_quiz_question_inside_before', sensei_get_the_question_id() ); -
/** * Filters the quiz ID when quiz submission is created. */ apply_filters( 'sensei_quiz_submission_create_quiz_id', $quiz_id ); -
/** * Filters the quiz ID when quiz submission is created. */ apply_filters( 'sensei_quiz_submission_get_or_create_quiz_id', $quiz_id ); -
/** * Filters the quiz submission ID when getting the question IDs. */ apply_filters( 'sensei_quiz_submission_get_question_ids_submission_id', $submission_id, 'comments' ); -
/** * Filters the quiz ID when quiz submission is retrieved. */ apply_filters( 'sensei_quiz_submission_get_quiz_id', $quiz_id ); -
sensei_scripts_allowed_pages
filter/** * Filter the list of admin pages slugs where the admin custom styles should be * loaded. */ apply_filters( 'sensei_scripts_allowed_pages', array( 'sensei_grading', Sensei_Analysis::PAGE_SLUG, 'sensei_learners', 'sensei_updates', 'sensei-settings', 'sensei_learners', Sensei_Course::SHOWCASE_COURSES_SLUG, $this->lesson_order_page_slug, $this->course_order_page_slug ) ); -
sensei_send_emails
filter/** * Filter Sensei's ability to send out emails. */ apply_filters( 'sensei_send_emails', true, $to, $subject, $message, 'legacy-email', [] ); -
/** * Filters the content drip promo settings section. */ apply_filters( 'sensei_settings_content_drip_hide', false ); -
/** * Filters the woocommerce promo settings section. */ apply_filters( 'sensei_settings_woocommerce_hide', false ); -
/** * Fires after rendering the quiz content. */ do_action( 'sensei_single_quiz_content_inside_after', get_the_ID() ); -
/** * Fires before rendering the quiz content. */ do_action( 'sensei_single_quiz_content_inside_before', get_the_ID() ); -
/** * Fires after rendering the quiz questions. */ do_action( 'sensei_single_quiz_questions_after', get_the_id() ); -
/** * Fires before rendering the quiz questions. */ do_action( 'sensei_single_quiz_questions_before', get_the_id() ); -
sensei_use_sensei_template
filter/** * Filters if Sensei templates and content wrappers should be used. For * development purposes. */ apply_filters( 'sensei_use_sensei_template', true ); -
sensei_video_position
filter/** * Filters the position of the video in the lesson meta. */ apply_filters( 'sensei_video_position', 'top', get_the_ID() ); -
/** * Restore language after sending email */ do_action( 'wpml_restore_language_from_email' ); -
/** * Switch language for email */ do_action( 'wpml_switch_language_for_email', $email_address ); -
analysis_after_container
action/** * Fires after the container on the Reports page. */ do_action( 'analysis_after_container' ); -
analysis_before_container
action/** * Fires before the container on the Reports page. */ do_action( 'analysis_before_container' ); -
learners_after_container
action/** * Fires after rendering the students container. */ do_action( 'learners_after_container' ); -
learners_before_container
action/** * Fires before rendering the students container. */ do_action( 'learners_before_container' ); -
/** * Filter the list table sortable columns for a specific screen. */ apply_filters( "manage_{$this->screen->id}_sortable_columns", $sortable_columns ); -
/** * Fires the scheduled "initial publish" actions for a post on `shutdown`. */ do_action( "sensei_{$post->post_type}_initial_publish", $post ); -
sensei_add_comment_indexes
filter/** * Filter to disable attempts at adding the comment indexes. */ apply_filters( 'sensei_add_comment_indexes', true ); -
sensei_additional_scripts
action/** * Fires when the frontend scripts are being enqueued. Allow additional scripts * to be loaded. */ do_action( 'sensei_additional_scripts' ); -
sensei_additional_styles
action/** * Fires when the frontend styles are being enqueued. Allow additional * stylesheets to be loaded. */ do_action( 'sensei_additional_styles' ); -
sensei_admin_enrol_user
action/** * Notify when a user should be enrolled to the course. */ do_action( 'sensei_admin_enrol_user', $this->course_id, $user_id ); -
/** * Action to run after the active user courses are displayed. */ do_action( 'sensei_after_active_user_courses' ); -
/** * Action to run after the completed user courses are displayed. */ do_action( 'sensei_after_completed_user_courses' ); -
sensei_after_email_template
action/** * Action hook after email template is loaded. */ do_action( 'sensei_after_email_template', $email_template ); -
/** * Action to run after the student course content is displayed. */ do_action( 'sensei_after_learner_course_content', $user ); -
sensei_after_list_table
action/** * Fires after the list table. */ do_action( 'sensei_after_list_table' ); -
sensei_after_main_content
action/** * Fires after the main content is output in the footer. */ do_action( 'sensei_after_main_content' ); -
sensei_after_template_part
action/** * Fires after the template part is loaded. */ do_action( 'sensei_after_template_part', $template_name, $template_path, $located ); -
/** * Fires after the user course content is displayed. */ do_action( 'sensei_after_user_course_content', wp_get_current_user() ); -
sensei_after_user_courses
action/** * Action to run after the user courses are displayed. */ do_action( 'sensei_after_user_courses' ); -
/** * Enqueue scripts for the quiz question AI upsell if the the feature is not * available. */ apply_filters( 'sensei_ai_quiz_generation_available', false ); -
sensei_all_access
filter/** * Filter sensei_all_access function result which determines if the current * user can access all of Sensei without restrictions. */ apply_filters_deprecated( 'sensei_all_access', [ $access ], '3.0.0', 'sensei_user_all_access' ); -
/** * Filter the columns that are going to be used in the Course Analysis list * table. Backwards compatible filter. Use sensei_analysis_course_columns * instead. */ apply_filters( "sensei_analysis_course_{$this->view}_columns", $columns, $this ); -
/** * Filter the sortable columns that are going to be used in the Course Analysis * list table. Backwards compatible filter. Use * sensei_analysis_course_columns_sortable instead. */ apply_filters( "sensei_analysis_course_{$this->view}_columns_sortable", $columns, $this ); -
/** * Filter the columns that are going to be used in the Course Analysis list * table. */ apply_filters( 'sensei_analysis_course_columns', $columns, $this ); -
/** * Filter the sortable columns that are going to be used in the Course Analysis * list table. */ apply_filters( 'sensei_analysis_course_columns_sortable', $columns, $this ); -
/** * Filter the course completions query arguments. */ apply_filters( 'sensei_analysis_course_completions', $course_args, $item ); -
/** * Filter the lessons arguments for the Course Analysis list table. */ apply_filters( 'sensei_analysis_course_filter_lessons', $lessons_args ); -
/** * Filter the course activity arguments for the Course Analysis list table. */ apply_filters( 'sensei_analysis_course_filter_statuses', $activity_args ); -
/** * Filter the text to display when no items are found in the Course Analysis * list table. */ apply_filters( 'sensei_analysis_course_no_items_text', $text ); -
/** * Filter the course completion percentage query arguments. */ apply_filters( 'sensei_analysis_course_percentage', $grade_args, $item ); -
/** * Filter the user arguments for the Course Analysis list table. */ apply_filters( 'sensei_analysis_course_search_users', $user_args ); -
/** * Filter the lesson status arguments for the Course Analysis list table. */ apply_filters( 'sensei_analysis_course_user_lesson', $lesson_args, $item, $this->user_id ); -
sensei_analysis_extra
action/** * Fires after the list table on the Reports page. */ do_action( 'sensei_analysis_extra' ); -
/** * Filter the columns that are going to be used in the table */ apply_filters( 'sensei_analysis_lesson_columns', $columns, $this ); -
/** * Filter the sortable columns that are going to be used in the table */ apply_filters( 'sensei_analysis_lesson_columns_sortable', $columns, $this ); -
/** * Filter the arguments used to search for activity. */ apply_filters( 'sensei_analysis_lesson_filter_statuses', $activity_args ); -
/** * Filter the lesson grades activity arguments for the Course Analysis list * table. */ apply_filters( 'sensei_analysis_lesson_grades', $grade_args, $item ); -
/** * Filter the user arguments used to search for users. */ apply_filters( 'sensei_analysis_lesson_search_users', $user_args ); -
/** * Filter the columns that are going to be used in the Analysis Overview list * table. */ apply_filters_deprecated( "sensei_analysis_overview_{$this->type}_columns", array( $columns, $this ), '4.19.0', 'sensei_analysis_overview_columns' ); -
/** * Filter the sortable columns that are going to be used in the Analysis * Overview list table. */ apply_filters_deprecated( "sensei_analysis_overview_{$this->type}_columns_sortable", array( $columns, $this ), '4.19.0', 'sensei_analysis_overview_columns_sortable' ); -
/** * Filter the columns for the courses overview report. */ apply_filters( 'sensei_analysis_overview_courses_columns', $columns, $this ); -
/** * Filter the sortable columns for the courses overview report. */ apply_filters( 'sensei_analysis_overview_courses_columns_sortable', $columns, $this ); -
/** * Filter the columns for the lesson report. */ apply_filters( 'sensei_analysis_overview_lessons_columns', $columns, $this ); -
/** * Filter the sortable columns for the lesson report. */ apply_filters( 'sensei_analysis_overview_lessons_columns_sortable', $columns, $this ); -
/** * Filter the columns that are going to be used in the table. */ apply_filters( 'sensei_analysis_overview_users_columns', $columns, $this ); -
/** * Filter the sortable columns that are going to be used in the table. */ apply_filters( 'sensei_analysis_overview_users_columns_sortable', $columns, $this ); -
/** * Filter user progress query arguments for courses: find completed courses. */ apply_filters( 'sensei_analysis_user_courses_ended', $course_args, $item ); -
/** * Filter user progress query arguments for courses: find started courses. */ apply_filters( 'sensei_analysis_user_courses_started', $course_args, $item ); -
/** * Filter user progress query arguments for lessons: find graded lessons. */ apply_filters( 'sensei_analysis_user_lesson_grades', $grade_args, $item ); -
/** * Filter the columns that are going to be used in the table. */ apply_filters( 'sensei_analysis_user_profile_columns', $columns ); -
/** * Filter sortable columns that are going to be used in the table. */ apply_filters( 'sensei_analysis_user_profile_columns_sortable', $columns ); -
/** * Filter the activity args for the user profile statuses. */ apply_filters( 'sensei_analysis_user_profile_filter_statuses', $activity_args ); -
/** * This action runs after including the course archive loop. This hook fires * within the archive-course.php It fires even if the current archive has no * posts. */ do_action( 'sensei_archive_after_course_loop' ); -
/** * Action after lesson archive loop on the archive-lesson.php template file It * will be executed even if there are no posts on the archive page. */ do_action( 'sensei_archive_after_lesson_loop' ); -
/** * This action before course messages archive loop. This hook fires within the * archive-message.php file. It fires even if the current archive has no no * messages. */ do_action( 'sensei_archive_after_message_loop' ); -
/** * This action before course archive loop. This hook fires within the * archive-course.php It fires even if the current archive has no posts. */ do_action( 'sensei_archive_before_course_loop' ); -
/** * Action before lesson archive loop. This action runs within the * archive-lesson.php. */ do_action( 'sensei_archive_before_lesson_loop' ); -
/** * This action before course messages archive loop. This hook fires within the * archive-message.php file. It fires even if the current archive has no no * messages. */ do_action( 'sensei_archive_before_message_loop' ); -
/** * filter the course archive filter buttons */ apply_filters( 'sensei_archive_course_filter_by_options', [ [ 'id' => 'all', 'url' => self::get_courses_page_url(), 'title' => __( 'All', 'sensei-lms' ), ], [ 'id' => 'featured', 'url' => add_query_arg( [ 'course_filter' => 'featured' ], self::get_courses_page_url() ), 'title' => __( 'Featured', 'sensei-lms' ), ], ] ); -
/** * Filter the sensei archive course order by values */ apply_filters( 'sensei_archive_course_order_by_options', [ 'default' => __( 'Default sort', 'sensei-lms' ), 'newness' => __( 'Sort by newest first', 'sensei-lms' ), 'title' => __( 'Sort by title A-Z', 'sensei-lms' ), ] ); -
/** * Filter courses per page on the course archive. */ apply_filters( 'sensei_archive_courses_per_page', get_option( 'posts_per_page' ) ); -
/** * Filter question types that can be automatically graded. */ apply_filters( 'sensei_autogradable_question_types', array( 'multiple-choice', 'boolean', 'gap-fill' ) ); -
/** * Get a list of background job actions that are handled by this class. */ apply_filters( 'sensei_background_job_actions', [] ); -
/** * Action to run before the active user courses are displayed. */ do_action( 'sensei_before_active_user_courses' ); -
/** * Action to run before the completed user courses are displayed. */ do_action( 'sensei_before_completed_user_courses' ); -
sensei_before_email_template
action/** * Action hook before email template is loaded. */ do_action( 'sensei_before_email_template', $email_template ); -
/** * Action to run before the student course content is loaded. */ do_action( 'sensei_before_learner_course_content', $user ); -
/** * Fire before we query a user's enrolled courses. This needs to be called * before building the query arguments, because `active` courses might be * incomplete if we haven't verified a user's enrolment is up-to-date. */ do_action( 'sensei_before_learners_enrolled_courses_query', $user_id ); -
sensei_before_list_table
action/** * Fires before the list table. */ do_action( 'sensei_before_list_table' ); -
sensei_before_my_courses
action/** * Fires before the My Courses content is loaded. */ do_action( 'sensei_before_my_courses', $user->ID ); -
sensei_before_template_part
action/** * Fires before the template part is loaded. */ do_action( 'sensei_before_template_part', $template_name, $template_path, $located ); -
/** * Fires before the user course content is displayed. */ do_action( 'sensei_before_user_course_content', wp_get_current_user() ); -
sensei_before_user_courses
action/** * Action to run before the user courses are displayed. */ do_action( 'sensei_before_user_courses' ); -
/** * Filters the course ID for the take course block. */ apply_filters( 'sensei_block_take_course_course_id', $course_id ); -
sensei_block_type_args
filter/** * Filter the args of the Sensei blocks. */ apply_filters( 'sensei_block_type_args', $block_args, $block_name ); -
sensei_breadcrumb_output
filter/** * Filter the breadcrumb HTML. */ apply_filters( 'sensei_breadcrumb_output', $html, $separator ); -
sensei_breadcrumb_separator
filter/** * Filter the breadcrumb separator. */ apply_filters( 'sensei_breadcrumb_separator', '>' ); -
/** * Filters if a visitor can view course content. */ apply_filters( 'sensei_can_access_course_content', $can_view_course_content, $course_id, $user_id, $context ); -
/** * Filters if site environment is able to make queries including a relationship * between users table and others. */ apply_filters( 'sensei_can_use_users_relationship', null ); -
/** * Check if currently logged in user can manually enrol themselves. Defaults to * `true` when not already enrolled. */ apply_filters( 'sensei_can_user_manually_enrol', $can_user_manually_enrol, $course_id ); -
sensei_can_user_view_lesson
filter/** * Filter if the user can view lesson and quiz content. */ apply_filters( 'sensei_can_user_view_lesson', $can_user_view_lesson, $lesson_id, $user_id, $checks ); -
sensei_can_user_view_module
filter/** * Filter if the user can view module content. */ apply_filters( 'sensei_can_user_view_module', $can_view_module_content, $module->term_id, $course_id, $user_id ); -
sensei_check_for_activity
filter/** * This filter runs inside Sensei_Utils::sensei_check_for_activity */ apply_filters( 'sensei_check_for_activity', get_comments( $args ), $args ); -
/** * Filter the arguments used to query the activity. */ apply_filters( 'sensei_check_for_activity_args', $args ); -
sensei_clock_init
filter/** * Filter the clock. */ apply_filters( 'sensei_clock_init', new Clock( wp_timezone() ) ); -
/** * Available to override if `wp_count_comments()` includes Sensei's comments in * the count. */ apply_filters( 'sensei_comment_counts_include_sensei_comments', $includes_sensei_comments, $post_id ); -
sensei_complete_course
action/** * Fires when a course is completed. */ do_action( 'sensei_complete_course' ); -
sensei_complete_lesson
action/** * Fires in sensei_the_single_lesson_meta function. */ do_action( 'sensei_complete_lesson' ); -
/** * This hook fires when the complete lesson button is displayed. */ do_action( 'sensei_complete_lesson_button' ); -
/** * Filter the URL that students are redirected to after completing a lesson. */ apply_filters( 'sensei_complete_lesson_redirect_url', $redirect_url, $lesson_id, $nav_links ); -
sensei_content_lesson_after
action/** * This action runs after the sensei lesson content. It runs inside the sensei * lesson-content.php template. */ do_action( 'sensei_content_lesson_after', get_the_ID() ); -
sensei_content_lesson_before
action/** * Action that runs before the sensei {post_type} content. It runs inside the * sensei content.php template. This applies to the specific post type that * you've targeted. */ do_action( 'sensei_content_lesson_before', get_the_ID() ); -
/** * Fires just after the post content in the lesson-content.php file. */ do_action( 'sensei_content_lesson_inside_after', get_the_ID() ); -
/** * Fires just before the post content in the content-lesson.php file. */ do_action( 'sensei_content_lesson_inside_before', get_the_ID() ); -
sensei_content_message_after
action/** * This action runs after the sensei message content. It runs inside the sensei * message-content.php template. */ do_action( 'sensei_content_message_after', get_the_ID() ); -
/** * Action that runs before the sensei {post_type} content. It runs inside the * sensei content.php template. This applies to the specific post type that * you've targeted. */ do_action( 'sensei_content_message_before', get_the_ID() ); -
/** * Fires just after the post content in the message-content.php file. */ do_action( 'sensei_content_message_inside_after', get_the_ID() ); -
/** * Fires just before the post content in the content-message.php file. */ do_action( 'sensei_content_message_inside_before', get_the_ID() ); -
sensei_context_notices
filter/** * Filter the Course Theme notices. */ apply_filters( 'sensei_context_notices', $this->notices, $this->context ); -
sensei_course_archive_meta
action/** * Fires when course meta is displayed. */ do_action( 'sensei_course_archive_meta' ); -
/** * Filter the courses page template when auto-creating it through setup wizard. */ apply_filters( 'sensei_course_archive_page_template', [ [ 'blockName' => 'core/query', 'innerContent' => [ '<div class="wp-block-query wp-block-sensei-lms-course-list wp-block-sensei-lms-course-list--is-list-view"> <!-- wp:sensei-lms/course-list-filter {"types":["featured"],"lock":{"move":true}} /--> <!-- wp:post-template {"align":"center"} --> <!-- wp:group {"align":"center","style":{"spacing":{"padding":{"top":"10px","right":"10px","bottom":"10p... ); -
/** * Filter the course archive page URL. */ apply_filters( 'sensei_course_archive_page_url', $course_page_url ); -
sensei_course_block_template
filter/** * Customize the course block template. */ apply_filters( 'sensei_course_block_template', $block_template, $post_type_object->template ?? [] ); -
sensei_course_category_slug
filter/** * Filter the rewrite slug for the course category taxonomy. */ apply_filters( 'sensei_course_category_slug', _x( 'course-category', 'taxonomy archive slug', 'sensei-lms' ) ); -
/** * Filter sensei_course_complete_prerequisite_message. */ apply_filters( 'sensei_course_complete_prerequisite_message', $complete_prerequisite_message ); -
/** * Filter the course completed page ID. */ apply_filters( 'sensei_course_completed_page_id', $page_id ); -
/** * Filter the course completed page template when auto-creating it through * setup wizard. */ apply_filters( 'sensei_course_completed_page_template', [ [ 'blockName' => 'core/paragraph', 'innerContent' => [ '<p class="has-text-align-center has-large-font-size">' . __( 'Congratulations on completing this course! 🥳', 'sensei-lms' ) . '</p>' ], 'attrs' => [ 'align' => 'center', 'fontSize' => 'large', ], ], [ 'blockName' => 'core/buttons', 'innerContent' => [ '<div class="wp-block-buttons is-content-justification-center" id="course-completed-... ); -
/** * Filter the course completed page URL. */ apply_filters( 'sensei_course_completed_page_url', $url, $course_id ); -
/** * Filter the percentage returned for a users course. */ apply_filters( 'sensei_course_completion_percentage', $percentage, $course_id, $user_id ); -
/** * Filter the course completion statement. Default Currently completed $var * lesson($plural) of $var in total */ apply_filters( 'sensei_course_completion_statement', $statement ); -
sensei_course_content_after
action/** * Fires after the course block in the content-course.php file. */ do_action( 'sensei_course_content_after', get_the_ID() ); -
sensei_course_content_before
action/** * This action runs before the sensei course content. It runs inside the sensei * content-course.php template. */ do_action( 'sensei_course_content_before', get_the_ID() ); -
/** * Access check for the course content. */ apply_filters( 'sensei_course_content_has_access', true, get_the_ID() ); -
/** * Fires just after the course content in the content-course.php file. */ do_action( 'sensei_course_content_inside_after', get_the_ID() ); -
/** * Fires just before the course content in the content-course.php file. */ do_action( 'sensei_course_content_inside_before', get_the_ID() ); -
sensei_course_count
filter/** * Filter course count query arguments. */ apply_filters( 'sensei_course_count', $post_args ); -
/** * Fetch all registered course enrolment providers. */ apply_filters( 'sensei_course_enrolment_providers', $providers ); -
/** * Filter providers that can handle frontend enrolment. */ apply_filters( 'sensei_course_enrolment_providers_prevent_manual_enrol', $all_providers ); -
/** * Fire action when course enrolment status changes. */ do_action( 'sensei_course_enrolment_status_changed', $user_id, $this->course_id, $is_enrolled ); -
/** * Filter on whether course enrolment results should be stored. */ apply_filters( 'sensei_course_enrolment_store_results', true, $user_id, $this->course_id, $had_existing_value, $enrolment_results ); -
sensei_course_get_lessons
filter/** * Filter runs inside Sensei_Course::course_lessons function */ apply_filters( 'sensei_course_get_lessons', $lessons, $course_id ); -
sensei_course_image_html
filter/** * Filter the HTML for the course image. If not blank, this will be surrounded * with an anchor tag linking to the course. */ apply_filters( 'sensei_course_image_html', $img_html, $course_id, $width, $height, $used_placeholder ); -
/** * Filter course prerequisite complete */ apply_filters( 'sensei_course_is_prerequisite_complete', $prerequisite_complete, $course_id ); -
/** * Filters the course ID for the `Sensei_Course::is_user_enrolled` method. */ apply_filters( 'sensei_course_is_user_enrolled_course_id', $course_id ); -
/** * Filters if a course has learning mode enabled. */ apply_filters( 'sensei_course_learning_mode_enabled', $enabled, $course_id ); -
/** * Fires when the override theme styles are loaded for learning mode. */ do_action( 'sensei_course_learning_mode_load_override_styles' ); -
/** * Fires when learning mode is loaded for a page. */ do_action( 'sensei_course_learning_mode_load_theme' ); -
/** * Fires when the theme is override is added for learning mode. */ do_action( 'sensei_course_learning_mode_override_theme' ); -
/** * Filters if the theme should be overriden for learning mode. */ apply_filters( 'sensei_course_learning_mode_theme_override_enabled', false ); -
/** * Filter to add extra links to a Course List pattern. The added links must be * a valid rendered block. */ apply_filters( 'sensei_course_list_block_patterns_extra_links', [], $pattern ); -
/** * Filter the course loop class the fires in the in * get_course_loop_content_class function which is called from the course loop * content-course.php. */ apply_filters( 'sensei_course_loop_content_class', $extra_classes, get_post() ); -
/** * Filter the number of columns on the course archive page. */ apply_filters( 'sensei_course_loop_number_of_columns', 1 ); -
/** * Action before saving the meta value. */ do_action( 'sensei_course_meta_before_save', $post_id, $meta_key, $new_meta_value ); -
/** * Filter whether or not to run the default save functionality for the meta. * This may be used with the "sensei_course_meta_before_save" action to create * custom save functionality for specific meta. */ apply_filters( 'sensei_course_meta_default_save', true, $post_id, $meta_key, $new_meta_value ); -
sensei_course_meta_fields
filter/** * Sets up the meta fields saved on course save in WP admin. */ apply_filters( 'sensei_course_meta_fields', [ 'course_prerequisite', 'course_featured', 'course_video_embed' ] ); -
/** * Fires when a new teacher is assigned to a course. */ do_action( 'sensei_course_new_teacher_assigned', $new_teacher, $course_id ); -
sensei_course_open_access
filter/** * Filter if the given course has open access turned on. */ apply_filters( 'sensei_course_open_access', $is_open_access, $course_id ); -
sensei_course_pass_grade
filter/** * Filter the course pass mark */ apply_filters( 'sensei_course_pass_grade', self::round( $course_passmark ), $course_id ); -
/** * Filter the image HTML when no course image exists. */ apply_filters( 'sensei_course_placeholder_image_url', '<img src="' . esc_url( Sensei()->assets->get_image( 'placeholder.png' ) ) . '" width="' . $width . '" height="' . $height . '" class="' . esc_attr( $classes ) . '" />', $course_id, $width, $height ); -
sensei_course_progress_stats
filter/** * Filter the course progress stats. */ apply_filters( 'sensei_course_progress_stats', $stats, $course_id ); -
/** * Fires inside course-results/lessons.php after the is user logged check, at * the bottom of all lessons. */ do_action( 'sensei_course_results_after_lessons', $course->ID ); -
/** * Fires inside course-results/lessons.php after the is user logged check, just * above the lessons header. */ do_action( 'sensei_course_results_before_lessons', $course->ID ); -
/** * This hook fire inside course-results.php before the content */ do_action( 'sensei_course_results_content_after' ); -
/** * This hook fire inside learner-profile.php before the content */ do_action( 'sensei_course_results_content_before' ); -
/** * This hook fire inside learner-profile.php inside directly after the content */ do_action( 'sensei_course_results_content_inside_after', $course->ID ); -
/** * This hook fire inside learner-profile.php inside directly before the content */ do_action( 'sensei_course_results_content_inside_before', $course->ID ); -
/** * This hook fire inside learner-profile.php inside directly before the content */ do_action( 'sensei_course_results_content_inside_before_lessons', $course->ID ); -
sensei_course_show_lessons
filter/** * Set the visibility of lessons on the single course page. */ apply_filters( 'sensei_course_show_lessons', true, $course_id ); -
/** * Filter the course ID for the course being started. */ apply_filters( 'sensei_course_start_course_id', $post->ID ?? 0 ); -
sensei_course_status_updated
action/** * Fires when a course status is updated. */ do_action( 'sensei_course_status_updated', $status, $user_id, $course_id, $comment_id, $previous_status ); -
/** * Fires after a lesson is created while saving the course structure. */ do_action( 'sensei_course_structure_lesson_created', $lesson_id, $this->course_id ); -
/** * Fires after a quiz is created while saving the course structure. */ do_action_deprecated( 'sensei_course_structure_quiz_created', array( $quiz_id, $lesson_id ), '4.22.0', 'sensei_quiz_create' ); -
sensei_course_the_title
filter/** * Alters the course title */ apply_filters( 'sensei_course_the_title', $post->post_title ); -
sensei_course_user_grade
filter/** * Filter the user total grade for course */ apply_filters( 'sensei_course_user_grade', self::round( $total_grade ), $course_id, $user_id ); -
/** * Whether to show pagination on the CPT page when displaying on a theme that * does not explicitly support Sensei. */ apply_filters( 'sensei_cpt_page_show_pagination', $show_pagination, $this->post_type, $this->post_id ); -
sensei_csv_export_filename
filter/** * Filter the filename for the CSV export. */ apply_filters( 'sensei_csv_export_filename', $report ); -
sensei_data_port_complete
action/** * Trigger an action when a data port job is complete. */ do_action( 'sensei_data_port_complete', $this ); -
/** * Filters the default feature flag settings. */ apply_filters( 'sensei_default_feature_flag_settings', static::DEFAULT_FEATURE_FLAGS[ $env ] ?? static::DEFAULT_FEATURE_FLAGS['production'] ); -
sensei_disable_legacy_emails
action/** * Action done after disabling legacy emails. */ do_action( 'sensei_disable_legacy_emails' ); -
sensei_disable_styles
filter/** * Filter to disable Sensei styles. */ apply_filters( 'sensei_disable_styles', $disable_styles ); -
/** * Display course enrollment actions. */ apply_filters( 'sensei_display_course_enrollment_actions', self::is_user_enrolled( $course_id, $user_id ), $course_id, $user_id, $completed_course ); -
sensei_do_link_to_module
filter/** * Determine if a particular module should be linked to. */ apply_filters( 'sensei_do_link_to_module', $do_link_to_module, $module, $link_to_current ); -
sensei_duplicate_post_args
filter/** * Filter arguments for `wp_insert_post` when duplicating a Sensei post. This * may be a Course, Lesson, or Quiz. */ apply_filters( 'sensei_duplicate_post_args', $new_post, $post ); -
/** * Ignored meta fields when duplicating a post. */ apply_filters( 'sensei_duplicate_post_ignore_meta', $ignore_meta_keys, $new_post, $post ); -
sensei_email
filter/** * Filter the email content. */ apply_filters( 'sensei_email', $html, $email_template ); -
sensei_email_classes
filter/** * Filter Sensei's email classes. */ apply_filters( 'sensei_email_classes', $this->emails ); -
sensei_email_course_teachers
filter/** * Filter the teacher IDs for a given course. */ apply_filters( 'sensei_email_course_teachers', array( $teacher_id ), $course_id ); -
sensei_email_generators
filter/** * Filter the individual email generators. */ apply_filters( 'sensei_email_generators', $this->email_generators ); -
sensei_email_is_available
filter/** * Filter if the email is available. */ apply_filters( 'sensei_email_is_available', $available, $post, $this ); -
sensei_email_list_columns
filter/** * Filter the columns that are displayed on the email list. */ apply_filters( 'sensei_email_list_columns', $columns, $this ); -
/** * Filter the row actions displayed on the email list. */ apply_filters( 'sensei_email_list_row_actions', $actions, $post, $this ); -
sensei_email_list_row_data
filter/** * Filter the row data displayed on the email list. */ apply_filters( 'sensei_email_list_row_data', $row_data, $post, $this ); -
/** * Integrate MailPoet by adding lists for courses and groups. */ apply_filters( 'sensei_email_mailpoet_feature', true ); -
sensei_email_replacements
filter/** * Filter the email replacements. */ apply_filters( 'sensei_email_replacements', $replacements, $email_name, $email_post, $this ); -
sensei_email_seeder_data
filter/** * Filter the email data. */ apply_filters( 'sensei_email_seeder_data', $this->email_data->get_email_data() ); -
sensei_email_send
action/** * Send HTML email. */ do_action( 'sensei_email_send', $this->get_identifier(), $replacements, static::USAGE_TRACKING_TYPE ); -
sensei_email_sent
action/** * Fires after `wp_mail()` sends a Sensei email to a recipient, so listeners * can react to real sends rather than suppressed or failed attempts. */ do_action( 'sensei_email_sent', $email_name, $recipient, $replacement ); -
sensei_emails
action/** * Action hook to allow 3rd parties to unhook Sensei's email actions. */ do_action( 'sensei_emails', $this ); -
/** * Enables journal storage for Sensei. */ apply_filters( 'sensei_enable_enrolment_provider_journal', false ); -
/** * Filter the batch size for the number of users to query per run in the course * calculation job. */ apply_filters( 'sensei_enrolment_course_calculation_job_batch_size', self::DEFAULT_BATCH_SIZE, $this->course_id ); -
/** * Filter the maximum amount of historical entries that are going to be stored * for each user, course and provider. */ apply_filters( 'sensei_enrolment_history_size', self::DEFAULT_HISTORY_SIZE ); -
/** * Filter the batch size for the number of users to query per run in the * learner calculation job. */ apply_filters( 'sensei_enrolment_learner_calculation_job_batch_size', self::DEFAULT_BATCH_SIZE ); -
/** * Filter the maximum amount of log messages that are going to be stored for * each user, course and provider. */ apply_filters( 'sensei_enrolment_message_log_size', self::DEFAULT_MESSAGE_LOG_SIZE ); -
/** * Notify upon calculation of enrolment results. */ do_action( 'sensei_enrolment_results_calculated', $enrolment_results, $this->course_id, $user_id ); -
/** * Filter the fields that should be sent with every event that is logged. */ apply_filters( 'sensei_event_logging_base_fields', $base_fields ); -
/** * Filter existing questions query */ apply_filters( 'sensei_existing_questions_query_results', $qry ); -
/** * Enable or disable 'preview as student' feature. */ apply_filters( 'sensei_feature_preview_students', true ); -
sensei_file_upload_args
filter/** * Filter the data array for the Sensei wp_handle_upload function call */ apply_filters( 'sensei_file_upload_args', array( 'test_form' => false ) ); -
/** * Customize the prefix prepended onto files uploaded in Sensei. */ apply_filters( 'sensei_file_upload_file_prefix', substr( md5( uniqid() ), 0, 7 ) . '_', $file ); -
/** * When a question category is expanded to its questions, if the quiz owner is * not an admin, only the questions owned by the teacher are included. This * behaviour can be disabled with this filter. */ apply_filters( 'sensei_filter_category_questions_by_author', true, $quiz_id ); -
/** * Filters the module terms when ownership is being checked for them. */ apply_filters( 'sensei_filter_module_terms_by_owner', $users_terms, $terms, $user_id ); -
/** * Filter the author Sensei set for queries. */ apply_filters( 'sensei_filter_queries_set_author', $current_user->ID, $screen->id ); -
/** * Lets providers give their own course sign-up handler. */ apply_filters( 'sensei_frontend_learner_enrolment_handler', array( $this, 'manually_enrol_learner' ), $current_user->ID, $course_id ); -
/** * case sensitive grading filter */ apply_filters( 'sensei_gap_fill_case_sensitive_grading', false ); -
/** * Filter the page ID. */ apply_filters( "sensei_get_{esc_attr($page)}_page_id", get_option( 'sensei_' . esc_attr( $page ) . '_page_id' ) ); -
sensei_get_all_courses
filter/** * Filter courses in Sensei_Course::get_all_courses. */ apply_filters( 'sensei_get_all_courses', $wp_query_obj->posts ); -
sensei_get_question_grade
filter/** * Filter the grade for the given question. */ apply_filters( 'sensei_get_question_grade', $question_grade, $question_id ); -
/** * Filter the question template data. This filter fires in the * get_template_data function. */ apply_filters( 'sensei_get_question_template_data', $data, $question_id, $quiz_id ); -
sensei_grade_question_auto
filter/** * Grading questions that are not auto gradable. */ apply_filters( 'sensei_grade_question_auto', $question_grade, $question_id, $question_type, $answer ); -
/** * Allows to change the list of teacher IDs with grading access allowed for a * given course ID. */ apply_filters( 'sensei_grading_allowed_user_ids', [ intval( $course->post_author ) ], $course_id ); -
/** * Fires before the filter dropdowns in the grading list table. */ do_action( 'sensei_grading_before_dropdown_filters' ); -
sensei_grading_count_statues
filter/** * Filter count statuses arguments in Grading. */ apply_filters_deprecated( 'sensei_grading_count_statues', array( $count_args ), '4.19.0', 'sensei_grading_count_statuses' ); -
/** * Filter count statuses arguments in Grading. */ apply_filters( 'sensei_grading_count_statuses', $count_args ); -
/** * Filter columns for the grading list table. */ apply_filters( 'sensei_grading_default_columns', $columns, $this ); -
/** * Filter sortable columns for the grading list table. */ apply_filters( 'sensei_grading_default_columns_sortable', $columns, $this ); -
/** * Filters the various values which are displayed in the grading admin page for * each quiz question. The expected values are type_name, right_answer, * user_answer_content and grade_type */ apply_filters( 'sensei_grading_display_quiz_question', null, $type, $question_id, $right_answer, $user_answer_content ); -
sensei_grading_extra
action/** * Fires after the container with main content on the Grading page. Allows to * add extra content. */ do_action( 'sensei_grading_extra' ); -
/** * Filter the arguments used to query for courses in the grading dropdown. */ apply_filters( 'sensei_grading_filter_courses', $course_args ); -
/** * Filter the arguments used to query for lessons in the grading dropdown. */ apply_filters( 'sensei_grading_filter_lessons', $lesson_args ); -
/** * Filter activity statuses arguments for Grading. */ apply_filters( 'sensei_grading_filter_statuses', $activity_args ); -
/** * Filter columns data for the Grading list table. */ apply_filters( 'sensei_grading_main_column_data', array( 'title' => '<strong><a class="row-title" href="' . esc_url( add_query_arg( array( 'page' => $this->page_slug, 'user_id' => $user_id, ), admin_url( 'admin.php' ) ) ) . '">' . esc_html( $title ) . '</a></strong>', 'course' => $course_title, 'lesson' => $lesson_title, 'updated' => $updated, 'user_status' => $status_html, 'user_grade' => $grade, 'action' => $grade_link, ), $item, $course_id ); -
sensei_grading_search_users
filter/** * Filter user searching arguments in Grading. */ apply_filters( 'sensei_grading_search_users', $user_args ); -
/** * Filters the list of supported actions for Guest Users. */ apply_filters( 'sensei_guest_user_supported_actions', $this->supported_actions ); -
/** * Filter whether a plugin has an active licensed. */ apply_filters( "sensei_home_is_plugin_licensed_{$plugin_slug}", ! $plugin_data['licensed'] ); -
/** * Filter to disable the promotional banner in Sensei Home. */ apply_filters( 'sensei_home_promo_banner_show', true ); -
/** * Filter the other plugins used for Sensei Home. */ apply_filters( 'sensei_home_remote_data_other_plugins', [] ); -
/** * Filter the primary plugin slug. */ apply_filters( 'sensei_home_remote_data_primary_plugin_slug', $this->primary_plugin_slug ); -
/** * Filter if we should retry errors when fetching remote data. */ apply_filters( 'sensei_home_remote_data_retry_error', true ); -
/** * Filter to disable upsell to Sensei Pro in Sensei Home's action to create * support tickets. */ apply_filters( 'sensei_home_support_ticket_creation_upsell_show', true ); -
sensei_home_tasks
filter/** * Filters the list of tasks that will be later displayed in the Sensei Home * header. */ apply_filters( 'sensei_home_tasks', $tasks ); -
sensei_hpps_cache_enabled
filter/** * Filter whether HPPS caching is enabled. */ apply_filters( 'sensei_hpps_cache_enabled', self::is_tables_repository() ); -
sensei_icon_href
filter/** * Filters the icon href for the svg. */ apply_filters( 'sensei_icon_href', "{$sprite_file}#sensei-sprite-{$name}", $sprite_file, $name ); -
sensei_import_csv_delimiter
filter/** * Filters the default CSV delimiter. */ apply_filters( 'sensei_import_csv_delimiter', false ); -
/** * Filters the CSV delimiter options. */ apply_filters( 'sensei_import_csv_delimiter_options', [ ',', ';', "\t", '|' ] ); -
sensei_is_enrolled
filter/** * Allow complete side-stepping of enrolment handling in Sensei. */ apply_filters( 'sensei_is_enrolled', null, $user_id, $this->course_id, $check_cache ); -
/** * Check if a specific enrolment background job is enabled. */ apply_filters( 'sensei_is_enrolment_background_job_enabled', true, $enrolment_job_name ); -
sensei_is_legacy_enrolled
filter/** * Allows other providers to have an opinion about whether or not a user was * enrolled pre-3.0.0. This should only be called once per user/course just * after upgrading from a pre-3.0.0 version of Sensei. */ apply_filters( 'sensei_is_legacy_enrolled', true, $user_id, $course_id, $course_progress_comment_id ); -
sensei_is_login_required
filter/** * Filters the access_permission that says if the user must be logged to view * the lesson content. */ apply_filters( 'sensei_is_login_required', $login_required, $course_id ); -
/** * Filter sortable columns for the learners admin table. */ apply_filters( 'sensei_learner_admin_default_columns_sortable', $columns, $this ); -
/** * Filter sensei_learner_admin_get_row_data, for adding/removing row data. */ apply_filters( 'sensei_learner_admin_get_row_data', $row_data, $item, $this ); -
/** * Filter the learner courses page template when auto-creating it through setup * wizard. */ apply_filters( 'sensei_learner_courses_page_template', [ [ 'blockName' => 'sensei-lms/button-learner-messages', 'innerContent' => [], 'attrs' => [], ], [ 'blockName' => 'core/query', 'innerContent' => [ '<div class="wp-block-query wp-block-sensei-lms-course-list wp-block-sensei-lms-course-list--is-list-view"><!-- wp:group {"style":{"spacing":{"padding":{"top":"var:preset|spacing|30","bottom":"0"}}},"layout":{"type":"constrained"}} --> <div class="w... ); -
/** * Filters the arguments of the query which fetches a learner's enrolled * courses. */ apply_filters( 'sensei_learner_enrolled_courses_args', $query_args, $user_id ); -
sensei_learner_full_name
filter/** * Filter the user full name from the get_learner_full_name function. */ apply_filters( 'sensei_learner_full_name', $full_name, $user_id ); -
/** * Filters the course IDs when getting them for a user by progress status. */ apply_filters( 'sensei_learner_get_course_ids_by_progress_status_course_ids', $course_ids, $user_id, $status ); -
/** * Filters the term ID used in the query to fetch a learner's enrolled courses. */ apply_filters( 'sensei_learner_get_enrolled_courses_query_args_term_id', $learner_term->term_id ); -
/** * This hook fire inside learner-profile.php after the content */ do_action( 'sensei_learner_profile_content_after' ); -
/** * This hook fire inside learner-profile.php before the content */ do_action( 'sensei_learner_profile_content_before' ); -
/** * Filter the name for the heading in the courses section of the learner * profile. */ apply_filters( 'sensei_learner_profile_courses_heading_name', $name ); -
sensei_learner_profile_info
action/** * This hooke fires inside the Sensei_Learner_Profiles::user_info function. * Just before the HTML is generated. */ do_action( 'sensei_learner_profile_info', $user ); -
/** * This filter runs inside the Sensei_Learner_Profiles::user_info function. * Here you can change the user avatar. */ apply_filters( 'sensei_learner_profile_info_avatar', get_avatar( $user->ID, 120 ), $user->ID ); -
/** * This filter runs inside the Sensei_Learner_Profiles::user_info function. * With this filter can change the users description on the learner user info * output. */ apply_filters( 'sensei_learner_profile_info_bio', $user->description, $user->ID ); -
/** * This filter runs inside the Sensei_Learner_Profiles::user_info function. * Here you can change the learner profile user display name. */ apply_filters( 'sensei_learner_profile_info_name', $user->display_name, $user->ID ); -
/** * This hook fire inside learner-profile.php inside directly after the content */ do_action( 'sensei_learner_profile_inside_content_after' ); -
/** * This hook fire inside learner-profile.php inside directly before the content */ do_action( 'sensei_learner_profile_inside_content_before' ); -
/** * This allows filtering of the Learner Profile permalinks. */ apply_filters( 'sensei_learner_profile_permalink', $permalink, $user ); -
/** * Fires in the end of the add learner form on the student management screen. */ do_action( 'sensei_learners_add_learner_form' ); -
/** * Filter the redirect URL after adding a learner. */ apply_filters( 'sensei_learners_add_learner_redirect_url', add_query_arg( $query_args, admin_url( 'admin.php' ) ) ); -
/** * Filter columns for the learners admin table. */ apply_filters( 'sensei_learners_admin_default_columns', $columns, $this ); -
/** * Filter the known bulk actions. */ apply_filters( 'sensei_learners_admin_get_known_bulk_actions', $known_bulk_actions ); -
/** * Fires after the headers on the Students page. */ do_action( 'sensei_learners_after_headers' ); -
/** * Filter the user IDs that have permission to manage students in a given * course. */ apply_filters( 'sensei_learners_allowed_user_ids', [ $post_author ], $course_id ); -
/** * Fires before the dropdown filters on the learner management screen. */ do_action( 'sensei_learners_before_dropdown_filters' ); -
/** * Filter sensei_learners_default_columns */ apply_filters( 'sensei_learners_default_columns', $columns, $this ); -
/** * Filter the columns that are sortable in learner management. */ apply_filters( 'sensei_learners_default_columns_sortable', $columns, $this ); -
sensei_learners_extra
action/** * Fires after the extra table nav markup on the student management screen. */ do_action( 'sensei_learners_extra' ); -
/** * Filter arguments for the course query on the student management screen. */ apply_filters( 'sensei_learners_filter_courses', $course_args ); -
/** * Filter arguments for the lesson query on the student management screen. */ apply_filters( 'sensei_learners_filter_lessons', $lesson_args ); -
/** * Filter sensei_learners_learner_updated */ apply_filters_deprecated( 'sensei_learners_learner_updated', array( $updated, $post_id, $progress->get_id() ), '4.26.2', 'sensei_students_row_updated' ); -
sensei_learners_query
filter/** * Filter the query to get learners based on the current search arguments. */ apply_filters( 'sensei_learners_query', $sql, $this ); -
sensei_learners_query_args
filter/** * Filter the arguments used to query the learners. */ apply_filters( 'sensei_learners_query_args', $args ); -
/** * Filters the Learning Mode block templates list. Allows to add additional * ones too. */ apply_filters( 'sensei_learning_mode_block_templates', $templates ); -
/** * Filter the lesson status icon. */ apply_filters( 'sensei_learning_mode_lesson_status_icon', $icon, $status ); -
sensei_lesson_archive_title
filter/** * Filter the lesson archive header. */ apply_filters( 'sensei_lesson_archive_title', $html ); -
sensei_lesson_back_link
action/** * Fires in sensei_the_single_lesson_meta function, when the back link is * displayed. */ do_action( 'sensei_lesson_back_link', $lesson_course_id ); -
sensei_lesson_block_template
filter/** * Customize the lesson block template. */ apply_filters( 'sensei_lesson_block_template', $block_template, $post_type_object->template ?? [] ); -
/** * Filters the Content Drip promo metabox toggle. */ apply_filters( 'sensei_lesson_content_drip_hide', false ); -
sensei_lesson_count
filter/** * Filter the query arguments for getting the lesson count. */ apply_filters( 'sensei_lesson_count', $post_args ); -
/** * Filter the course sign up notice message alert level on the lesson page. */ apply_filters( 'sensei_lesson_course_signup_notice_level', 'info', $course_id ); -
/** * Filter the course sign up notice message on the lesson page. */ apply_filters( 'sensei_lesson_course_signup_notice_message', $message_default, $course_id, $course_link ); -
sensei_lesson_excerpt
filter/** * Filter the lesson excerpt. */ apply_filters( 'sensei_lesson_excerpt', $html ); -
sensei_lesson_meta_extra
action/** * Fires when the lesson meta is displayed. */ do_action( 'sensei_lesson_meta_extra', get_the_ID() ); -
/** * Filter the lesson placeholder image. */ apply_filters( 'sensei_lesson_placeholder_image_url', '<img src="' . esc_url( Sensei()->assets->get_image( 'placeholder.png' ) ) . '" width="' . $width . '" height="' . $height . '" class="woo-image thumbnail alignleft" />' ); -
sensei_lesson_prerequisite
filter/** * Filter the lesson prerequisite. */ apply_filters( 'sensei_lesson_prerequisite', $prerequisite_lesson_id, $current_lesson_id ); -
/** * The lesson preview indicator text. Defaults to "Preview". */ apply_filters( 'sensei_lesson_preview_title_text', $preview_text, $course_id ); -
sensei_lesson_quiz_questions
filter/** * Filter the questions returned by Sensei_Lesson::lessons_quiz_questions. */ apply_filters( 'sensei_lesson_quiz_questions', $questions, $quiz_id ); -
sensei_lesson_show_actions
filter/** * Filters if the lesson actions should be shown. */ apply_filters( 'sensei_lesson_show_actions', $show_actions, $lesson_id, $user_id ); -
/** * Filter whether to show the course sign up notice on the lesson page. */ apply_filters( 'sensei_lesson_show_course_signup_notice', $show_course_signup_notice, $course_id ); -
sensei_lesson_slug
filter/** * Filter the rewrite slug for the lesson post type. */ apply_filters( 'sensei_lesson_slug', _x( 'lesson', 'post type single slug', 'sensei-lms' ) ); -
sensei_lesson_status_updated
action/** * Fires when a lesson status is updated. */ do_action( 'sensei_lesson_status_updated', $status, $user_id, $lesson_id, $comment_id ); -
/** * Filters the lesson tag archive description. */ apply_filters( 'sensei_lesson_tag_archive_description', nl2br( $tag->description ), $tag->term_id ); -
/** * Filters the lesson tag archive title. */ apply_filters( 'sensei_lesson_tag_archive_title', get_queried_object()->name ); -
sensei_lesson_tag_slug
filter/** * Filter the rewrite slug for the lesson tag taxonomy. */ apply_filters( 'sensei_lesson_tag_slug', _x( 'lesson-tag', 'taxonomy archive slug', 'sensei-lms' ) ); -
/** * Filter the take course URL displayed in lessons. Notice that in Learning * Mode, when user is logged-in, it will not use this filter and directly * enroll the user in the course. */ apply_filters( 'sensei_lesson_take_course_url', get_permalink( $course_id ), $course_id ); -
sensei_list_bulk_actions
filter/** * Filter the output of bulk action for sensei list table. */ apply_filters( 'sensei_list_bulk_actions', $bulk_action_html ); -
sensei_lms_installed
action/** * Fires after the installation completes. */ do_action( 'sensei_lms_installed' ); -
sensei_lms_schema_get_tables
filter/** * Filter the list of known tables. */ apply_filters( 'sensei_lms_schema_get_tables', $tables ); -
/** * Allow developer to stop the loading of the default supported theme wrappers. * After removing this you can follow the documentation on how to add theme * support. */ apply_filters( 'sensei_load_default_supported_theme_wrappers', true ); -
sensei_loaded
action/** * Fires once all global objects have been set in Sensei. */ do_action( 'sensei_loaded', $this ); -
sensei_locate_template
filter/** * Filter located template. */ apply_filters( 'sensei_locate_template', $template, $template_name, $template_path ); -
sensei_log_activity_after
action/** * Fires after logging the activity. */ do_action( 'sensei_log_activity_after', $args, $data, $comment_id ); -
sensei_log_activity_before
action/** * This action runs before logging the activity. */ do_action( 'sensei_log_activity_before', $args, $data ); -
sensei_log_event
filter/** * Explicitly disable usage tracking from being sent. */ apply_filters( 'sensei_log_event', true, $event_name, $properties ); -
sensei_login_form_after
action/** * Executes after the Login form markup closes. */ do_action( 'sensei_login_form_after' ); -
sensei_login_form_before
action/** * Executes before the Sensei Login form markup begins. */ do_action( 'sensei_login_form_before' ); -
/** * Executes inside the sensei login form after all the default fields. */ do_action( 'sensei_login_form_inside_after' ); -
/** * Executes inside the sensei login form after the password field. You can use * the action to add extra form login fields. */ do_action( 'sensei_login_form_inside_after_password_field' ); -
/** * Executes inside the sensei login form before all the default fields. */ do_action( 'sensei_login_form_inside_before' ); -
/** * Change the redirect url programatically. */ apply_filters( 'sensei_login_success_redirect_url', $success_redirect_url ); -
sensei_login_url
filter/** * Filter the login URL. */ apply_filters( 'sensei_login_url', $login_url, $redirect ); -
sensei_loop_course_after
action/** * This runs after the post type items in the loop.php template. It runs only * for the specified post type */ do_action( 'sensei_loop_course_after' ); -
sensei_loop_course_before
action/** * This runs before the the course loop items in the loop.php template. It runs * only for the course post type. This loop will not run if the current * wp_query has no posts. */ do_action( 'sensei_loop_course_before' ); -
/** * This runs after the post type items in the loop.php template. It runs only * for the specified post type */ do_action( 'sensei_loop_course_inside_after' ); -
/** * This runs before the post type items in the loop.php template. It runs * within the courses loop <ul> tag. */ do_action( 'sensei_loop_course_inside_before' ); -
sensei_loop_lesson_after
action/** * This runs after the lesson items <ul> in the loop-lesson.php template. */ do_action( 'sensei_loop_lesson_after' ); -
sensei_loop_lesson_before
action/** * This runs before the post type items in the loop-lesson.php template. */ do_action( 'sensei_loop_lesson_before' ); -
/** * This runs inside the <ul> after the lesson items in the loop-lesson.php * template. */ do_action( 'sensei_loop_lesson_inside_after' ); -
/** * This runs before the lesson items in the loop-lesson.php template. */ do_action( 'sensei_loop_lesson_inside_before' ); -
sensei_loop_message_after
action/** * This runs after the post type items in the loop.php template. It runs only * for the specified post type */ do_action( 'sensei_loop_message_after' ); -
sensei_loop_message_before
action/** * This runs before the the message loop items in the loop-message.php * template. It runs only only for the message post type. This loop will not * run if the current wp_query has no posts. */ do_action( 'sensei_loop_message_before' ); -
/** * This runs after the post type items in the loop.php template. It runs only * for the specified post type */ do_action( 'sensei_loop_message_inside_after' ); -
/** * This runs before the post type items in the loop.php template. It runs * within the message loop <ul> tag. */ do_action( 'sensei_loop_message_inside_before' ); -
/** * Fire action when a learner is provided with manual enrolment. */ do_action( 'sensei_manual_enrolment_learner_enrolled', $user_id, $course_id ); -
/** * Fire action when a learner's manual enrolment is withdrawn. */ do_action( 'sensei_manual_enrolment_learner_withdrawn', $user_id, $course_id ); -
sensei_message_archive_title
filter/** * Filter the sensei messages archive title. */ apply_filters( 'sensei_message_archive_title', $html ); -
/** * Filter the send message link */ apply_filters( 'sensei_messages_send_message_link', $html, isset( $this->message_notice ) ? $this->message_notice : '', $post_id, $user_id ); -
sensei_messages_slug
filter/** * Filter the rewrite slug for the Sensei Message post type. */ apply_filters( 'sensei_messages_slug', _x( 'messages', 'post type single slug', 'sensei-lms' ) ); -
sensei_migration_max_retries
filter/** * Filter the maximum number of retry attempts for failed migrations. */ apply_filters( 'sensei_migration_max_retries', 3 ); -
/** * Filter the batch size for quiz migration. */ apply_filters( 'sensei_migration_quiz_batch_size', $batch_size ); -
/** * Filter the insert batch size for student progress migration. */ apply_filters( 'sensei_migration_student_progress_insert_batch_size', $insert_batch_size ); -
/** * Filter the read batch size for student progress migration. */ apply_filters( 'sensei_migration_student_progress_read_batch_size', $read_batch_size ); -
sensei_migration_time_budget
filter/** * Filter the time budget (in seconds) for each migration run. */ apply_filters( 'sensei_migration_time_budget', 20.0 ); -
/** * Filter the page hooks where modules admin script can be loaded on. */ apply_filters( 'sensei_module_admin_script_page_white_lists', array( 'admin_page_module-order' ) ); -
/** * Filter the module archive description. */ apply_filters( 'sensei_module_archive_description', nl2br( $module->description ), $module->term_id ); -
sensei_module_archive_title
filter/** * Filter the module archive title. */ apply_filters( 'sensei_module_archive_title', get_queried_object()->name ); -
/** * Filter to change the number of links in the course modules column. */ apply_filters( 'sensei_module_course_column_max_links_count', 3 ); -
/** * Filter the course sign up notice message alert level on the module page. */ apply_filters( 'sensei_module_course_signup_notice_level', 'info', $course_id ); -
/** * Filter the course sign up notice message on the module page. */ apply_filters( 'sensei_module_course_signup_notice_message', $message_default, $course_id, $course_link ); -
/** * Action hook triggered after module progress is saved for a user. */ do_action( 'sensei_module_save_user_progress', $course_id, $module_id, $user_id, $module_progress ); -
/** * Filter for if we should show the course sign up notice on the module page. */ apply_filters( 'sensei_module_show_course_signup_notice', $show_course_signup_notice, $course_id ); -
sensei_module_slug
filter/** * Filter to alter the Sensei Modules rewrite slug */ apply_filters( 'sensei_module_slug', 'modules' ); -
sensei_modules_title
filter/** * Filters the module title on the single course page. */ apply_filters( 'sensei_modules_title', '<header class="modules-title"><h2>' . __( 'Modules', 'sensei-lms' ) . '</h2></header>', $post->ID ); -
/** * Filter the rewrite slug for the multiple_question post type. */ apply_filters( 'sensei_multiple_question_slug', _x( 'multiple_question', 'post type single slug', 'sensei-lms' ) ); -
sensei_my_courses_per_page
filter/** * Filters number of courses per page on the my courses page as set in the * settings. */ apply_filters( 'sensei_my_courses_per_page', $query->get( 'posts_per_page', 10 ) ); -
sensei_new_private_message
action/** * Fires when a new private message is sent. */ do_action( 'sensei_new_private_message', $message_id ); -
sensei_notice
filter/** * Allows to modify a sensei notice that will be shown to the user. */ apply_filters( 'sensei_notice', $notice ); -
sensei_notices_screen_ids
filter/** * Filter the array of screen IDs that are part of Sensei, and where we should * show Sensei notices on. */ apply_filters( 'sensei_notices_screen_ids', self::SENSEI_SCREEN_IDS ); -
/** * Filter the option to send admin notification emails when teachers creation * course. */ apply_filters( 'sensei_notify_admin_new_course_creation', true ); -
/** * Action to output the course enrolment buttons. When this is called, we know * that the user is not taking the course, but do not know whether the user is * logged in. */ do_action( 'sensei_output_course_enrolment_actions' ); -
sensei_placeholder_thumbnail
filter/** * Filter the placeholder thumbnail image. */ apply_filters( 'sensei_placeholder_thumbnail', Sensei()->plugin_url . 'assets/images/placeholder.png' ); -
/** * Filter the post types for which to fire an action on initial publish. */ apply_filters( 'sensei_post_types_for_initial_publish_action', [ 'course', 'lesson', 'quiz', 'question', 'sensei_message', ] ); -
/** * Applying a grade before the auto grading takes place. */ apply_filters( 'sensei_pre_grade_question_auto', false, $question_id, $question_type, $answer ); -
sensei_pre_kses
filter/** * Filter content before passing it to kses, similar to pre_kses. */ apply_filters( 'sensei_pre_kses', $string, $allowed_html, $allowed_protocols ); -
sensei_private_message_reply
action/** * Fires when a private message reply is received. */ do_action( 'sensei_private_message_reply', $comment, $message ); -
/** * Filter the correct answer. */ apply_filters( 'sensei_question_answer_message_correct_answer', $correct_answer, $lesson_id, $question_id, get_current_user_id(), $answer_correct ); -
/** * Filter the learner grade displayed. */ apply_filters( 'sensei_question_answer_message_grade', $grade, $lesson_id, $question_id, get_current_user_id(), $answer_correct ); -
/** * Filter the answer message. */ apply_filters( 'sensei_question_answer_message_text', $answer_message, $lesson_id, $question_id, get_current_user_id(), $user_correct ); -
sensei_question_answer_notes
filter/** * Filter the answer feedback. */ apply_filters( 'sensei_question_answer_notes', $answer_notes, $question_id, $lesson_id ); -
/** * Filter the rewrite slug for the question category taxonomy. */ apply_filters( 'sensei_question_category_slug', _x( 'question-category', 'taxonomy archive slug', 'sensei-lms' ) ); -
sensei_question_classes
filter/** * filter the sensei question class within the quiz question loop. */ apply_filters( 'sensei_question_classes', array( $question_type ) ); -
/** * Filter the question whose description is rendered. */ apply_filters( 'sensei_question_description_question_id', $question_id ); -
sensei_question_type_slug
filter/** * Filter the rewrite slug for the question type taxonomy. */ apply_filters( 'sensei_question_type_slug', _x( 'question-type', 'taxonomy archive slug', 'sensei-lms' ) ); -
/** * Allows modification of type specific question properties. */ apply_filters( 'sensei_question_type_specific_properties', $type_specific_properties, $question_type, $question ); -
sensei_question_types
filter/** * Filter the question types. */ apply_filters( 'sensei_question_types', $types ); -
/** * Filter the correct answer response. */ apply_filters( 'sensei_questions_get_correct_answer', $right_answer, $question_id ); -
/** * Filters allowed which mimetypes are allowed. */ apply_filters( 'sensei_quiz_answer_file_upload_types', false, $question_id ); -
sensei_quiz_back_link
action/** * Hook when the back link is displayed on the single quiz page. */ do_action( 'sensei_quiz_back_link', Sensei()->quiz->data->quiz_lesson ); -
/** * Filter the lesson ID that keys a user's cached quiz data. */ apply_filters( 'sensei_quiz_cache_key_lesson_id', $lesson_id ); -
/** * Filter the course sign up notice message on the quiz page. */ apply_filters( 'sensei_quiz_course_signup_notice_message', $message_default, $course_id, $course_link ); -
/** * Filter to change whether the block based editor should be used instead of * the legacy metabox based editor. This is to allow sites to migrate over to * the block based editor if necessary. */ apply_filters( 'sensei_quiz_enable_block_based_editor', $is_block_editor ); -
/** * Filters the answer ID when quiz grade is created. */ apply_filters( 'sensei_quiz_grade_create_answer_id', $answer->get_id(), 'tables' ); -
/** * Filters the submission ID when quiz grade is created. */ apply_filters( 'sensei_quiz_grade_create_submission_id', $submission->get_id(), 'comments' ); -
/** * Filters the question ID when saving many quiz grades. */ apply_filters( 'sensei_quiz_grade_save_many_question_id', $grade->get_question_id() ); -
/** * Filters the submission ID when saving many quiz grades. */ apply_filters( 'sensei_quiz_grade_save_many_submission_id', $submission->get_id(), 'comments' ); -
/** * Filters the quiz ordering type promo toggle. */ apply_filters( 'sensei_quiz_ordering_question_type_hide', false ); -
sensei_quiz_pagination_args
filter/** * Filters the quiz questions paginate links arguments. */ apply_filters( 'sensei_quiz_pagination_args', [ 'total' => $sensei_question_loop['total_pages'], 'current' => $sensei_question_loop['current_page'], 'format' => '?quiz-page=%#%', 'type' => 'list', 'mid_size' => 1, 'prev_next' => false, ] ); -
sensei_quiz_panel_add
filter/** * Filter the quiz panel add html. */ apply_filters( 'sensei_quiz_panel_add', $html, $context ); -
/** * Fires after the question answers are displayed inside the answers block. */ do_action( 'sensei_quiz_question_answers_inside_after', $sensei_question_loop['current_question']->ID ); -
/** * Fires before the question answers are displayed inside the answers block. */ do_action( 'sensei_quiz_question_answers_inside_before', $sensei_question_loop['current_question']->ID ); -
/** * Sensei Quiz question points format filter */ apply_filters( 'sensei_quiz_question_points_format', $formatted_points, $points ); -
sensei_quiz_settings
filter/** * Filter the quiz setting fields. */ apply_filters( 'sensei_quiz_settings', $settings ); -
sensei_quiz_slug
filter/** * Filter the rewrite slug for the quiz post type. */ apply_filters( 'sensei_quiz_slug', _x( 'quiz', 'post type single slug', 'sensei-lms' ) ); -
sensei_quiz_type_slug
filter/** * Filter the rewrite slug for the quiz type taxonomy. */ apply_filters( 'sensei_quiz_type_slug', _x( 'quiz-type', 'taxonomy archive slug', 'sensei-lms' ) ); -
sensei_register_form_end
action/** * Fires at the end of the register form. */ do_action( 'sensei_register_form_end' ); -
sensei_register_form_fields
action/** * Fires at the end of the register form. Allows adding extra fields to the * registration form. */ do_action( 'sensei_register_form_fields' ); -
sensei_register_form_start
action/** * Fires at the start of the register form. */ do_action( 'sensei_register_form_start' ); -
/** * Filter the arguments passed in when registering the Sensei Course post type. */ apply_filters( 'sensei_register_post_type_course', $args ); -
/** * Filter the arguments passed in when registering the Sensei Lesson post type. */ apply_filters( 'sensei_register_post_type_lesson', $args ); -
/** * Filter the arguments passed in when registering the Sensei Question post * type. */ apply_filters( 'sensei_register_post_type_question', $args ); -
/** * Filter the arguments passed in when registering the Sensei Quiz post type. */ apply_filters( 'sensei_register_post_type_quiz', $args ); -
/** * Filter the arguments passed in when registering the Sensei sensei_message * post type. */ apply_filters( 'sensei_register_post_type_sensei_message', $args ); -
sensei_register_widgets
action/** * Fires after Sensei widgets have been registered. */ do_action( 'sensei_register_widgets' ); -
sensei_registration_redirect
filter/** * Filter the URL that students are redirected to after registering. */ apply_filters( 'sensei_registration_redirect', $redirect_to ); -
sensei_registration_url
filter/** * Filter the registration URL. */ apply_filters( 'sensei_registration_url', $registration_url, $redirect ); -
/** * Whether to render the Continue Course block. */ apply_filters( 'sensei_render_continue_course_block', Sensei()->course::is_user_enrolled( $course_id, $user_id ) && ! Sensei_Utils::user_completed_course( $course_id, $user_id ), $attributes, $content ); -
/** * Whether to render the View Results block. */ apply_filters( 'sensei_render_view_results_block', Sensei_Utils::user_completed_course( $course_id, get_current_user_id() ), $attributes, $content ); -
/** * Fires after the top filter inputs on the reports overview screen. */ do_action( 'sensei_reports_overview_after_top_filters', $this->type ); -
/** * Fires before the top filter inputs on the reports overview screen. */ do_action( 'sensei_reports_overview_before_top_filters', $this->type ); -
/** * Customize the export button URL on the reports overview screen. */ apply_filters( 'sensei_reports_overview_export_button_url', $url ); -
/** * Fires before the user query is executed. */ do_action( 'sensei_reports_overview_students_data_provider_pre_user_query', $query ); -
sensei_reset_lesson_button
action/** * This hook fires when the reset lesson button is displayed. */ do_action( 'sensei_reset_lesson_button' ); -
/** * This action is triggered when a category question is created or updated by * the lesson quiz REST endpoint. */ do_action( 'sensei_rest_api_category_question_saved', $result, $question ); -
/** * Filters the response of lesson-quiz requests. */ apply_filters( 'sensei_rest_api_lesson_quiz_response', $quiz_data, $quiz ); -
/** * Fires when the questions and options of a lesson quiz have been saved, by * the lesson-quiz REST controller or the `sensei/quiz-questions-set` ability. */ do_action( 'sensei_rest_api_lesson_quiz_update', $lesson, $params ); -
/** * This action is triggered when a question is created or updated by the lesson * quiz REST endpoint. */ do_action( 'sensei_rest_api_question_saved', $result, $question['type'], $question ); -
/** * Modify or add REST API schema for a question type. */ apply_filters( 'sensei_rest_api_schema_question_type', $schema, $type ); -
/** * Add additional question types to the REST API schema. */ apply_filters( 'sensei_rest_api_schema_single_question', $single_question_schema ); -
sensei_round_mode
filter/** * Filter round mode. */ apply_filters( 'sensei_round_mode', $mode, $val, $context, $precision ); -
sensei_round_precision
filter/** * Filter the round precision. */ apply_filters( 'sensei_round_precision', $precision, $val, $context, $mode ); -
sensei_scheduler_class
filter/** * Override the default class that implements `Sensei_Scheduler_Interface`. */ apply_filters( 'sensei_scheduler_class', $default_class_name ); -
/** * Check if self-enrollment is not allowed. */ apply_filters( 'sensei_self_enrollment_not_allowed', $self_enrollment_not_allowed, $course_id ); -
sensei_settings_after_links
action/** * Fires after the navigation links are displayed. */ do_action( 'sensei_settings_after_links', $tab_name ); -
sensei_settings_content
filter/** * Filters content for the settings page. */ apply_filters( 'sensei_settings_content', $tab_name ); -
sensei_settings_fields
filter/** * Filters settings fields. */ apply_filters( 'sensei_settings_fields', $fields ); -
/** * Filters the My Courses page ID. */ apply_filters( 'sensei_settings_my_course_page_id', $this->get( 'my_course_page' ) ); -
sensei_settings_tabs
filter/** * Filters settings tabs. */ apply_filters( 'sensei_settings_tabs', $sections ); -
/** * Filters courses processed by the course query in the [sensei_user_courses] * shortcode. */ apply_filters( 'sensei_setup_course_query_should_filter_course_by_status', false, $course_status, $user_id ); -
sensei_shortcode_classes
filter/** * Filter the array of shortcodes and their handler classes. */ apply_filters( 'sensei_shortcode_classes', array( 'sensei_featured_courses' => 'Sensei_Shortcode_Featured_Courses', 'sensei_user_courses' => 'Sensei_Shortcode_User_Courses', 'sensei_courses' => 'Sensei_Shortcode_Courses', 'sensei_teachers' => 'Sensei_Shortcode_Teachers', 'sensei_user_messages' => 'Sensei_Shortcode_User_Messages', 'sensei_course_page' => 'Sensei_Shortcode_Course_Page', 'sensei_lesson_page' => 'Sensei_Shortcode_Lesson_Pag... ); -
/** * Determine if we should display course toggles on User Courses Shortcode. */ apply_filters( 'sensei_shortcode_user_courses_display_course_toggle_actions', true ); -
/** * Override deferment handling for enrolment checking. */ apply_filters( 'sensei_should_defer_enrolment_check', $should_defer_enrolment_check ); -
/** * Adds the ability to hide notices on a specific screen. */ apply_filters( "sensei_show_admin_notices_{$screen_id}", true ); -
/** * Show the enrolment debug button on learner management. */ apply_filters( 'sensei_show_enrolment_debug_button', false, $item->user_id, $course_id ); -
sensei_show_lesson_numbers
filter/** * Filter whether to show lesson numbers next to the lesson. */ apply_filters( 'sensei_show_lesson_numbers', false ); -
sensei_show_main_header
filter/** * Allow user to stop the output of get_sensei_header which also includes a * call to get_header. */ apply_filters( 'sensei_show_main_header', true ); -
sensei_sidebar
action/** * Fires when the sidebar is displayed in the footer. */ do_action( 'sensei_sidebar' ); -
/** * Hook inside the single course post above the content */ do_action( 'sensei_single_course_content_inside_after', get_the_ID() ); -
/** * Hook inside the single course post above the content */ do_action( 'sensei_single_course_content_inside_before', get_the_ID() ); -
/** * The hook is inside the course lesson on the single course. It is just before * the lesson closing markup. It fires for each lesson. */ do_action( 'sensei_single_course_inside_after_lesson', get_the_ID() ); -
/** * The hook is inside the course lesson on the single course. It fires for each * lesson. It is just before the lesson excerpt. */ do_action( 'sensei_single_course_inside_before_lesson', get_the_ID() ); -
/** * Actions just before the sensei single course lessons loop begins */ do_action( 'sensei_single_course_lessons_after' ); -
/** * Actions just before the sensei single course lessons loop begins */ do_action( 'sensei_single_course_lessons_before' ); -
/** * Hook runs inside single-course/course-modules.php */ do_action( 'sensei_single_course_modules_after' ); -
/** * Hook runs inside single-course/course-modules.php */ do_action( 'sensei_single_course_modules_before' ); -
/** * Hook runs inside single-course/course-modules.php */ do_action( 'sensei_single_course_modules_inside_after', sensei_get_the_module_id() ); -
/** * Hook runs inside single-course/course-modules.php */ do_action( 'sensei_single_course_modules_inside_before', sensei_get_the_module_id() ); -
/** * Hook inside the single lesson template after the content */ do_action( 'sensei_single_lesson_content_inside_after', get_the_ID() ); -
/** * Hook inside the single lesson above the content */ do_action( 'sensei_single_lesson_content_inside_before', get_the_ID() ); -
/** * Action inside the single message template after the content */ do_action( 'sensei_single_message_content_inside_after', get_the_ID() ); -
/** * Action inside the single message template before the content */ do_action( 'sensei_single_message_content_inside_before', get_the_ID() ); -
/** * Filter the URL that students are redirected to after starting a course. */ apply_filters( 'sensei_start_course_redirect_url', get_permalink( $post->ID ), $post ); -
sensei_student_groups_hide
filter/** * Filters the Student groups promo landing page. */ apply_filters( 'sensei_student_groups_hide', false ); -
/** * Filter whether to read student progress from tables. */ apply_filters( 'sensei_student_progress_read_from_tables', $read_from_tables ); -
/** * Filters if the last activity filter by date and the last activity sorting * are enabled in the students report. */ apply_filters( 'sensei_students_report_last_activity_filter_enabled', true ); -
sensei_students_row_updated
filter/** * Filters whether a student row was updated on the Students screen. */ apply_filters( 'sensei_students_row_updated', $started_at_changed, $post_id, $user_id, $post_type ); -
/** * Fires after rendering all markup on the module page. */ do_action( 'sensei_taxonomy_module_content_after' ); -
/** * Fires before rendering any markup on the module page. */ do_action( 'sensei_taxonomy_module_content_before' ); -
/** * Fires after rendering the module content. */ do_action( 'sensei_taxonomy_module_content_inside_after' ); -
/** * Fires before rendering the module content. */ do_action( 'sensei_taxonomy_module_content_inside_before' ); -
/** * This action runs after including the teacher archive loop. This hook fires * within the teacher-archive.php. It fires even if the current archive has no * posts. */ do_action( 'sensei_teacher_archive_course_loop_after' ); -
/** * This action before teacher courses loop. This hook fires within the * archive-course.php. It fires even if the current archive has no posts. */ do_action( 'sensei_teacher_archive_course_loop_before' ); -
sensei_teacher_archive_query
filter/** * Change the query on the teacher author archive template */ apply_filters( 'sensei_teacher_archive_query', $query ); -
sensei_teacher_course_ids
filter/** * Filter the course IDs associated with a given teacher. */ apply_filters( 'sensei_teacher_course_ids', $this->get_teacher_courses( get_current_user_id(), true ), get_current_user_id() ); -
/** * Sensei teachers capabilities array filter */ apply_filters( 'sensei_teacher_role_capabilities', array( 'read' => true, 'manage_sensei_grades' => true, 'moderate_comments' => true, 'upload_files' => true, 'publish_lessons' => true, 'manage_lesson_categories' => true, 'edit_lessons' => true, 'edit_published_lessons' => true, 'edit_private_lessons' => true, 'read_private_lessons' => true, 'delete_published_lessons' => true, 'create_courses' => true, 'publish_courses' => false, 'manage_course... ); -
/** * Sensei teachers shortcode list item filter */ apply_filters( 'sensei_teachers_shortcode_list_item', '<li class="teacher"><a href="' . esc_url( get_author_posts_url( $user->ID ) ) . '">' . esc_html( $user_display_name ) . '</a></li>', $user ); -
sensei_template_url
filter/** * Filter the template url. */ apply_filters( 'sensei_template_url', 'sensei/' ); -
/** * Filter the module description. */ apply_filters( 'sensei_the_module_description', $module_description ); -
sensei_the_module_id
filter/** * Filter the module ID. */ apply_filters( 'sensei_the_module_id', $module_term_id ); -
sensei_the_module_permalink
filter/** * Filter the module permalink url. This fires within the * sensei_the_module_permalink function. */ apply_filters( 'sensei_the_module_permalink', $module_url, $module_term_id, $course_id ); -
/** * Filter the module status. */ apply_filters( 'sensei_the_module_status_html', $module_status_html, $module_term_id, $course_id ); -
sensei_the_module_title
filter/** * Filter the module title. */ apply_filters( 'sensei_the_module_title', $module_title, $module_term_id, $course_id ); -
/** * Filter the no permissions message just before it is echo'd on the * no-permissions.php file. */ apply_filters( 'sensei_the_no_permissions_message', Sensei()->permissions_message['message'], $post_id ); -
/** * Filter the no permissions title just before it is echo'd on the * no-permissions.php file. */ apply_filters( 'sensei_the_no_permissions_title', Sensei()->permissions_message['title'] ); -
sensei_the_question_number
filter/** * Filters the number of the current question within the quiz question loop. */ apply_filters( 'sensei_the_question_number', $question_number, $sensei_question_loop['current_question']->ID, $sensei_question_loop['quiz_id'] ); -
sensei_the_title_classes
filter/** * Filter the title classes */ apply_filters( 'sensei_the_title_classes', $post->post_type . '-title' ); -
sensei_the_title_html_tag
filter/** * Filter the template html tag for the title */ apply_filters( 'sensei_the_title_html_tag', 'h3' ); -
sensei_tools
filter/** * Array of the tools available to Sensei LMS. */ apply_filters( 'sensei_tools', $tools ); -
/** * Display additional information for a specific tool, such as status. */ do_action( "sensei_tools_listing_after_{$tool->get_id()}", $tool ); -
/** * Fires after progress tables are deleted. */ do_action( 'sensei_tools_progress_tables_deleted', $results ); -
sensei_tour_is_complete
filter/** * Filters the tour completion status. */ apply_filters_deprecated( 'sensei_tour_is_complete', array( $this->get_tour_completion_status( $handle, get_current_user_id() ), $handle ), '4.26.3' ); -
sensei_tour_loaders
filter/** * Filters the tour loaders. */ apply_filters_deprecated( 'sensei_tour_loaders', array( $tour_loaders ), '4.26.3' ); -
sensei_usage_tracking_data
filter/** * Filter the usage tracking data. */ apply_filters( 'sensei_usage_tracking_data', $usage_data ); -
sensei_use_wp_register_link
filter/** * Filter to force Sensei to output the default WordPress user registration * link. */ apply_filters( 'sensei_use_wp_register_link', false ); -
sensei_user_all_access
filter/** * Filter if a particular user has access to all of Sensei without * restrictions. */ apply_filters( 'sensei_user_all_access', $access, $user_id ); -
sensei_user_completed_lesson
filter/** * Filter the user lesson status */ apply_filters( 'sensei_user_completed_lesson', $user_lesson_status, $lesson_id, $user_id ); -
sensei_user_course_reset
action/** * Fires when user progress is reset in a course. */ do_action( 'sensei_user_course_reset', $user_id, $course_id ); -
sensei_user_course_start
action/** * Fires when a user starts a course. */ do_action( 'sensei_user_course_start', $user_id, $course_id ); -
/** * Filter a message for user course status. */ apply_filters( "sensei_user_course_status_{$status}", $message ); -
/** * Filters the the user courses filter options. */ apply_filters( 'sensei_user_courses_filter_options', $filter_options ); -
sensei_user_courses_query
filter/** * Filters the query which fetches the user courses. */ apply_filters( 'sensei_user_courses_query', null, $user_id, $this->status, $base_query_args ); -
sensei_user_lesson_start
action/** * Fires when a user starts a lesson. When this action runs the lesson status * may not yet exist. */ do_action( 'sensei_user_lesson_start', $user_id, $lesson_id ); -
/** * Filter the user question feedback. */ apply_filters( 'sensei_user_question_feedback', $feedback, $lesson_id, $question_id, $user_id ); -
sensei_user_quiz_status
filter/** * Filter user quiz status. */ apply_filters( 'sensei_user_quiz_status', array( 'status' => $status, 'box_class' => $box_class, 'message' => $message, 'extra' => $extra, ), $lesson_id, $user_id, $is_lesson ); -
/** * Filter a message for user quiz status. Legacy filter. */ apply_filters( "sensei_user_quiz_status_{$status}", $message ); -
sensei_user_quiz_submitted
action/** * User quiz has been submitted */ do_action( 'sensei_user_quiz_submitted', $user_id, $quiz_id, $grade, $quiz_pass_percentage, $quiz_grade_type ); -
sensei_user_started_course
filter/** * Filter the user started course value */ apply_filters( 'sensei_user_started_course', $user_started_course, $course_id, $user_id ); -
/** * This action runs after getting the comments for the given request. */ do_action( 'sensei_utils_check_for_activity_after_get_comments', $args, $comments ); -
/** * This action runs before getting the comments for the given request. */ do_action( 'sensei_utils_check_for_activity_before_get_comments', $args ); -
/** * Filter lesson ID for `Sensei_Utils::user_completed_lesson` method. */ apply_filters( 'sensei_utils_user_completed_lesson_lesson_id', $lesson_id ); -
/** * Allows filtering of the widget's component list. */ apply_filters( 'sensei_widget_course_component_components_list', array( 'usercourses' => __( 'New Courses', 'sensei-lms' ), 'featuredcourses' => __( 'Featured Courses', 'sensei-lms' ), 'activecourses' => __( 'My Active Courses', 'sensei-lms' ), 'completedcourses' => __( 'My Completed Courses', 'sensei-lms' ), ) ); -
/** * Get the courses for a custom component. */ apply_filters( "sensei_widget_course_component_get_courses_{$component}", array(), $instance ); -
/** * Filter on the no courses message. */ apply_filters( "sensei_widget_course_component_no_courses_message_{$this->instance['component']}", __( 'You have no courses.', 'sensei-lms' ), $this->instance ); -
sensei_wpcom_product_slugs
filter/** * Filter to allow adding products slugs to check if it has an active WPCOM * subscription. */ apply_filters( 'sensei_wpcom_product_slugs', [] ); -
/** * Change the redirect url programatically. */ apply_filters_deprecated( 'sesei_login_success_redirect_url', [ $redirect_to ], 'sensei_login_success_redirect_url', 'Use `sensei_login_success_redirect_url` instead' ); -
settings_after_form
action/** * Fires after the settings form. */ do_action( 'settings_after_form' ); -
settings_before_form
action/** * Fires before the settings form. */ do_action( 'settings_before_form' ); -
the_course_lessons_title
filter/** * Filter the title and markup that appears above the lessons on a single * course page. */ apply_filters( 'the_course_lessons_title', ob_get_clean() ); -
/** * Filter course categories arguments. */ apply_filters( 'widget_course_categories_args', $cat_args ); -
/** * Filter course categories dropdown arguments. */ apply_filters( 'widget_course_categories_dropdown_args', $cat_args ); -
the_title
filterapply_filters( 'the_title', $item->post_title, $item->ID ); -
do_action( "{$this->widget_cssclass}_bottom" ); -
{$this->widget_cssclass}_top
actiondo_action( "{$this->widget_cssclass}_top" ); -
widget_title
filterapply_filters( 'widget_title', $instance['title'], $instance, $this->id_base ); -
sensei_ajax_redirect_url
filterapply_filters( 'sensei_ajax_redirect_url', add_query_arg( array( 'page' => $this->page_slug, 'course_cat' => $course_cat, ), admin_url( 'admin.php' ) ) ); -
apply_filters( 'sensei_analysis_course_column_data', array( 'title' => $user_name, 'email' => $user_email, 'started' => $user_start_date, 'completed' => $user_end_date, 'user_status' => $status, 'percent' => $course_percent, ), $item, $this ); -
sensei_user_lesson_end
actiondo_action( 'sensei_user_lesson_end', $user_id, $quiz_lesson_id ); -
sensei_course_image
actiondo_action( 'sensei_course_image', $post_id ); -
sensei_user_lesson_reset
actiondo_action( 'sensei_user_lesson_reset', $user_id, $lesson_id ); -
wpml_object_id
filterapply_filters( 'wpml_object_id', $term_id, Sensei_PostTypes::LEARNER_TAXONOMY_NAME, true ); -
{$action}_link
filterapply_filters( "{$action}_link", $url, $post_id ); -
course_archive_title
filterapply_filters( 'course_archive_title', $before_html . $title . $after_html ); -
apply_filters( 'course_category_archive_title', $before_html . $title . $after_html ); -
course_category_title
filterapply_filters( 'course_category_title', $html, $term->term_id ); -
is_sensei
filterapply_filters( 'is_sensei', $is_sensei, $post ); -
apply_filters( "manage_{$legacy_screen_id}_sortable_columns", $sortable_columns ); -
plugin_locale
filterapply_filters( 'plugin_locale', $wp_user_locale, $domain ); -
register_form
actiondo_action( 'register_form' ); -
apply_filters( 'sensei_analysis_lesson_column_data', array( 'title' => $user_name, 'started' => $user_start_date, 'completed' => $user_end_date, 'status' => $status, 'grade' => $grade, ), $item, $this ); -
sensei_analysis_stats_boxes
filterapply_filters( 'sensei_analysis_stats_boxes', $stats_to_render ); -
apply_filters( 'sensei_analysis_total_courses_ended', $course_args ); -
apply_filters( 'sensei_analysis_total_courses_started', $course_args ); -
sensei_analysis_total_users
filterapply_filters( 'sensei_analysis_total_users', $user_count['total_users'], $user_count ); -
apply_filters( 'sensei_analysis_user_profile_column_data', array( 'title' => $course_title, 'started' => $course_start_date, 'completed' => $course_end_date, 'status' => $status, 'percent' => $course_percent, ), $item ); -
apply_filters_deprecated( 'sensei_couse_access_permission_message', [ $message, $post->ID ], '3.0.0', null ); -
apply_filters_deprecated( 'sensei_display_start_course_form', [ $default_can_user_manually_enrol, $course_id ], '3.0.0', 'sensei_can_user_manually_enrol' ); -
apply_filters_deprecated( 'sensei_is_course_content_restricted', [ false, $post->ID ], '3.0.0', null ); -
apply_filters( 'sensei_json_search_users_query', array( 'fields' => 'all', 'orderby' => 'display_name', 'search' => '*' . $term . '*', 'search_columns' => $search_columns, ), $term ); -
apply_filters_deprecated( 'sensei_learners_learners_columns', [ $columns, $this ], '3.0.0', 'sensei_learners_default_columns' ); -
apply_filters_deprecated( 'sensei_learners_learners_columns_sortable', [ $columns, $this ], '3.0.0', 'sensei_learners_default_columns_sortable' ); -
apply_filters( 'sensei_learners_lesson_learners', array( 'post_id' => $item->ID, 'type' => 'sensei_lesson_status', 'status' => 'any', ) ); -
sensei_lesson_image
actiondo_action( 'sensei_lesson_image', $post_id, '100', '100', false, true ); -
sensei_pagination_args
filterapply_filters( 'sensei_pagination_args', array( 'base' => esc_url_raw( str_replace( 999999999, '%#%', get_pagenum_link( 999999999, false ) ) ), 'format' => '', 'add_args' => '', 'current' => max( 1, get_query_var( 'paged' ) ), 'total' => $wp_query->max_num_pages, 'prev_text' => '←', 'next_text' => '→', 'type' => 'list', 'end_size' => 3, 'mid_size' => 3, ) ); -
apply_filters( 'sensei_registered_widgets_list', array( 'course-component' => 'Course_Component', 'lesson-component' => 'Lesson_Component', 'course-categories' => 'Course_Categories', 'category-courses' => 'Category_Courses', ) ); -
apply_filters_deprecated( 'sensei_user_can_register_for_course', [ true, $post->ID ], '3.0.0', null ); -
sensei_user_quiz_grade
actiondo_action( 'sensei_user_quiz_grade', $user_id, $quiz_id, $grade, $quiz_passmark, $quiz_grade_type ); -
the_excerpt
filterapply_filters( 'the_excerpt', get_the_excerpt() ); -
do_action( 'wpml_admin_make_post_duplicates', $element_id ); -
wpml_copy_post_to_language
filterapply_filters( 'wpml_copy_post_to_language', $post_id, $target_language, $mark_as_duplicate ); -
wpml_current_language
filterapply_filters( 'wpml_current_language', null ); -
apply_filters( 'wpml_element_has_translations', null, $element_id, $element_type ); -
wpml_element_language_code
filterapply_filters( 'wpml_element_language_code', null, array( 'element_id' => $element_id, 'element_type' => $element_type, ) ); -
apply_filters( 'wpml_element_language_details', null, array( 'element_id' => $element_id, 'element_type' => $element_type, ) ); -
wpml_element_trid
filterapply_filters( 'wpml_element_trid', null, $element_id, $element_type ); -
apply_filters( 'wpml_get_element_translations', null, $trid, $element_type ); -
wpml_original_element_id
filterapply_filters( 'wpml_original_element_id', null, $course_id, 'post_course' ); -
wpml_post_duplicates
filterapply_filters( 'wpml_post_duplicates', $master_post_id ); -
do_action( 'wpml_set_element_language_details', $args ); -
wpml_sync_custom_field
actiondo_action( 'wpml_sync_custom_field', $element_id, $field_name );
Generated from Sensei LMS's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Can't find the right hook?
We can build the customisation for you. Describe what you need: