From 8b1a1da954d0f406c4a08db6c7fdebac93305c6e Mon Sep 17 00:00:00 2001 From: Adam Nekola Date: Fri, 26 Feb 2021 20:17:44 -0500 Subject: [PATCH 1/3] Filter the sensei_start_course_form button text --- includes/template-functions.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/template-functions.php b/includes/template-functions.php index 88ad3145f0..aa8b176510 100755 --- a/includes/template-functions.php +++ b/includes/template-functions.php @@ -99,11 +99,13 @@ function sensei_start_course_form( $course_id ) { if ( $prerequisite_complete ) { wp_enqueue_script( 'sensei-stop-double-submission' ); + $sensei_start_course_form_text = wp_kses_post( apply_filters( 'sensei_start_course_form_text', esc_html_e( 'Take This Course', 'sensei-lms' ) ) ); + ?>
- +
Date: Fri, 26 Feb 2021 20:18:20 -0500 Subject: [PATCH 2/3] Filter the sensei_start_course_form button text --- includes/template-functions.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/template-functions.php b/includes/template-functions.php index 88ad3145f0..47f14d2ec9 100755 --- a/includes/template-functions.php +++ b/includes/template-functions.php @@ -99,11 +99,13 @@ function sensei_start_course_form( $course_id ) { if ( $prerequisite_complete ) { wp_enqueue_script( 'sensei-stop-double-submission' ); + $sensei_start_course_form_text = apply_filters( 'sensei_start_course_form_text', esc_html_e( 'Take This Course', 'sensei-lms' ) ); + ?>
- +
Date: Fri, 26 Feb 2021 20:26:56 -0500 Subject: [PATCH 3/3] Didn't have the repo set up right; fixed two errors --- includes/template-functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/template-functions.php b/includes/template-functions.php index 47f14d2ec9..d3283c7f84 100755 --- a/includes/template-functions.php +++ b/includes/template-functions.php @@ -99,13 +99,13 @@ function sensei_start_course_form( $course_id ) { if ( $prerequisite_complete ) { wp_enqueue_script( 'sensei-stop-double-submission' ); - $sensei_start_course_form_text = apply_filters( 'sensei_start_course_form_text', esc_html_e( 'Take This Course', 'sensei-lms' ) ); + $sensei_start_course_form_text = apply_filters( 'sensei_start_course_form_text', esc_html( 'Take This Course', 'sensei-lms' ) ); ?>
- +