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
## ---- 1. Backend ---- ## | |
// Adding a custom Meta container to admin products pages | |
add_action('add_meta_boxes', 'create_custom_meta_box'); | |
if (!function_exists('create_custom_meta_box')) { | |
function create_custom_meta_box() | |
{ | |
add_meta_box( | |
'custom_product_meta_box', | |
__(' Product Main URL <em>(orginal)</em>', 'cmb'), |
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
.tutor-course-loop-header-meta .tutor-course-wishlist { | |
z-index: 100; | |
position: absolute; | |
right: 6%; | |
} |
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 | |
//file path -> plugins/tutor/templates/loop/course-price-woocommerce.php | |
/** | |
* Course loop price | |
* | |
* @since v.1.0.0 | |
* @author themeum | |
* @url https://themeum.com | |
* |
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 | |
/** | |
* Template for displaying single course | |
* | |
* @since v.1.0.0 | |
* | |
* @author Themeum | |
* @url https://themeum.com | |
* | |
* @package TutorLMS/Templates |
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
<div class="tutor-wrap"> | |
<?php | |
if (!defined('ABSPATH')) | |
exit; | |
global $wp_query; | |
if (is_user_logged_in()) { |
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
tutor-lms-elementor-addons/templates/course/about.php | |
Update the page with this code | |
<?php | |
global $post; | |
?> | |
<div class="etlms-course-summery"> | |
<h4 class="tutor-segment-title"> | |
<?php esc_html_e($settings['section_title_text'], 'tutor-lms-elementor-addons'); ?> |
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
// The shortcode function | |
function tutor_current_user_enrolled_course_list() { | |
$my_courses = tutor_utils()->get_enrolled_courses_by_user(get_current_user_id(), array('private', 'publish')); | |
if ($my_courses && $my_courses->have_posts()): | |
while ($my_courses->have_posts()): | |
$my_courses->the_post(); | |
$avg_rating = tutor_utils()->get_course_rating()->rating_avg; | |
$tutor_course_img = get_tutor_course_thumbnail_src(); |
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
plugins/tutor/templates/dashboard/my-profile.php, line 17 this | |
$phone = get_user_meta($uid,'phone_number',true); , need to replace with this fixed code , just prefix _ issue | |
$phone = get_user_meta($uid,'_phone_number',true); (edited) | |
ALso, | |
/wp-content/plugins/tutor/templates/dashboard/settings/profile.php, 126 line, need to change | |
<?php echo get_user_meta($user->ID,'_phone_number',true); ?> | |
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
function tutorenrolled_student_list() { | |
global $wp_query, $wp; | |
$user = wp_get_current_user(); | |
$paged = 1; | |
$url = home_url( $wp->request ); | |
$url_path = parse_url($url, PHP_URL_PATH); | |
$basename = pathinfo($url_path, PATHINFO_BASENAME); | |
if ( isset($_GET['paged']) && is_numeric($_GET['paged']) ) { |
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
$url = site_url(); | |
echo paginate_links( array( | |
//'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ), | |
'base' => str_replace( $big, '%#%', $url .'/home/page/'.$big ), | |
'format' => '?paged=%#%', | |
'current' => max( 1, get_query_var( 'paged' ) ), | |
'total' => $total_num_pages | |
) ); |