From 40bc7cc3b5c4ccbe0762e5cbf4c101881c595f59 Mon Sep 17 00:00:00 2001 From: Collins Agbonghama Date: Fri, 4 Aug 2023 11:06:36 +0100 Subject: [PATCH] Added $sub_url to tutor_dashboard_url filter --- classes/Utils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Utils.php b/classes/Utils.php index 2545fa8a1..f2f47069a 100644 --- a/classes/Utils.php +++ b/classes/Utils.php @@ -5299,7 +5299,7 @@ public function instructor_register_url() { public function tutor_dashboard_url( $sub_url = '' ) { $page_id = (int) $this->get_option( 'tutor_dashboard_page_id' ); $page_id = apply_filters( 'tutor_dashboard_page_id', $page_id ); - return apply_filters( 'tutor_dashboard_url', trailingslashit( get_the_permalink( $page_id ) ) . $sub_url ); + return apply_filters( 'tutor_dashboard_url', trailingslashit( get_the_permalink( $page_id ) ) . $sub_url, $sub_url ); } /**