includes/class-sensei-course-results.php 1 location
|
@@ 79-83 (lines=5) @@
|
76 |
|
|
77 |
|
$course = get_post( $course_id ); |
78 |
|
|
79 |
|
if ( get_option('permalink_structure') ) { |
80 |
|
$permalink = trailingslashit( get_home_url() ) . $this->courses_url_base . '/' . $course->post_name . '/results/'; |
81 |
|
} else { |
82 |
|
$permalink = trailingslashit( get_home_url() ) . '?course_results=' . $course->post_name; |
83 |
|
} |
84 |
|
} |
85 |
|
|
86 |
|
return $permalink; |
includes/class-sensei-learner-profiles.php 1 location
|
@@ 90-96 (lines=7) @@
|
87 |
|
|
88 |
|
$permalink = ''; |
89 |
|
|
90 |
|
if( $user ) { |
91 |
|
if ( get_option('permalink_structure') ) { |
92 |
|
$permalink = trailingslashit( get_site_url() ) . $this->profile_url_base . '/' . $user->user_nicename; |
93 |
|
} else { |
94 |
|
$permalink = trailingslashit( get_site_url() ) . '?learner_profile=' . $user->user_nicename; |
95 |
|
} |
96 |
|
} |
97 |
|
|
98 |
|
return $permalink; |
99 |
|
} |