Skip to content

Commit

Permalink
Added $sub_url to tutor_dashboard_url filter
Browse files Browse the repository at this point in the history
  • Loading branch information
w3guy authored Aug 4, 2023
1 parent 663d707 commit 40bc7cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/Utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}

/**
Expand Down

0 comments on commit 40bc7cc

Please sign in to comment.