@@ 411-418 (lines=8) @@ | ||
408 | } |
|
409 | ||
410 | $settings = Sensei()->settings->get_settings(); |
|
411 | if( isset( $settings[ 'my_course_page' ] ) |
|
412 | && 0 < intval( $settings[ 'my_course_page' ] ) ){ |
|
413 | ||
414 | $my_courses_page_id = $settings[ 'my_course_page' ]; |
|
415 | ||
416 | $my_courses_url = get_permalink($my_courses_page_id); |
|
417 | ||
418 | } |
|
419 | ||
420 | if ( is_single() && is_singular( $this->post_type ) |
|
421 | || is_post_type_archive( $this->post_type ) ) { |
@@ 2826-2831 (lines=6) @@ | ||
2823 | $wp_register_link = apply_filters('sensei_use_wp_register_link', false); |
|
2824 | ||
2825 | $settings = Sensei()->settings->get_settings(); |
|
2826 | if( isset( $settings[ 'my_course_page' ] ) |
|
2827 | && 0 < intval( $settings[ 'my_course_page' ] ) ){ |
|
2828 | ||
2829 | $my_courses_page_id = $settings[ 'my_course_page' ]; |
|
2830 | ||
2831 | } |
|
2832 | ||
2833 | // If a My Courses page was set in Settings, and 'sensei_use_wp_register_link' |
|
2834 | // is false, link to My Courses. If not, link to default WordPress registration page. |