This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .wpep-wrapper>.wpep-container .course-grid-container [data-items-per-row="4"] .course-grid-item, .wpep-wrapper>.wpep-container .course-grid-container [data-items-per-row="4"] .ebook-grid-item, .wpep-wrapper>.wpep-container .course-grid-container [data-items-per-row="4"] .offer-grid-item { | |
| width: 22.8% !important; | |
| } | |
| @media (max-width: 992px) { | |
| .wpep-wrapper>.wpep-container .course-grid-container [data-items-per-row="4"] .course-grid-item, .wpep-wrapper>.wpep-container .course-grid-container [data-items-per-row="4"] .ebook-grid-item, .wpep-wrapper>.wpep-container .course-grid-container [data-items-per-row="4"] .offer-grid-item { | |
| width: 31.0% !important; | |
| } | |
| } | |
| @media (max-width: 768px) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .wpep-wrapper div { | |
| -ms-box-sizing: border-box !important; | |
| -webkit-box-sizing: border-box !important; | |
| -moz-box-sizing: border-box !important; | |
| box-sizing: border-box !important; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .wpep-shadowed-box{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=70)"!important;filter:alpha(opacity=70)!important;opacity:0.7!important} | |
| .wpep-shadowed-box.wpep-hidden{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"!important;filter:alpha(opacity=0)!important;opacity:0!important} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $show_content = true; | |
| if( isset( $previous_lesson_id ) && intval( $previous_lesson_id ) != 0 && is_user_logged_in() ) { | |
| global $wpdb; | |
| $sql = 'SELECT lc.* | |
| FROM ' . $wpdb->prefix . 'wpep_section_lesson_completed lc | |
| WHERE lc.lesson_id = ' . $previous_lesson_id . ' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script type="text/javascript"> | |
| jQuery(document).ready(function() { | |
| setTimeout( function() { | |
| window.location = '<?php echo wpep_course_lesson_permalink( wpep_controller()->userActivity->get_delivered_course_lesson_id( $course_id, get_current_user_id() ), $course_id ); ?>'; | |
| }, 3000 ); | |
| }); | |
| </script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_filter( "pre_get_posts", 'example_code_supress_filter', 100 ); | |
| function example_code_supress_filter( $query ) { | |
| $query->set( 'suppress_filters', false ); | |
| return $query; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_action( 'wpep_user_set_assessment_data', function( $key, $value, $post_id, $question_id, $question_answer_id, $user_id ) { | |
| if( $key != WPEP_USER_ASSESSMENT_STATUS ) | |
| return; | |
| $student_name = wpep_content_user_profile_format_name( $user_id ); | |
| $status_label = wpep_get_setting_translated( 'assessment-status-label-' . $value ); | |
| $admin_url = wpep_admin_url_statistics( [ | |
| 'tab' => 'assessments', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // How it is : | |
| function gutenberg_wpautop( $content ) { | |
| if ( gutenberg_content_has_blocks( $content ) ) { | |
| return $content; | |
| } | |
| return wpautop( $content ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Please ensure that WPEP -> Settings -> Index Page -> Grid Options -> Enforce Ordering Option is Disabled. | |
| add_filter( 'wpep_primary_content_list_args', function($args) { | |
| $args = [ | |
| 'order' => 'DESC', | |
| 'orderby' => 'date', | |
| ]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function my_lost_password_redirect() { | |
| wp_redirect( 'https://growlearnteach.com' ); | |
| exit; | |
| } | |
| add_action('after_password_reset', 'my_lost_password_redirect'); |