OwlCyberSecurity - MANAGER
Edit File: edura-learnpress-functions.php
<?php //learnpress function// add_filter( 'learn-press/override-templates', function(){ return true; } ); add_image_size( 'edura_500X300', 500, 300, true ); function edura_lp_get_courses_cat_list() { $courses_category_id = get_queried_object_id(); $args = array( 'parent' => $courses_category_id ); $terms = get_terms( 'course_category', get_the_ID()); $cat_options = array('' => ''); if ($terms) { foreach ($terms as $term) { $cat_options[$term->name] = $term->name; } } return $cat_options; } function edura_lp_the_loop_instructor() { $author_id = get_the_author_meta('ID'); $author_name = get_the_author_meta('display_name', $author_id); ?> <?php echo LP_Profile::instance( $author_id )->get_profile_picture( '', 96 ); ?> <?php echo wp_kses_post( $author_name ); ?> <?php }