This file contains 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( 'wc_stripe_generate_payment_request', 'change_stripe_payment_description', 10, 2 ); | |
function change_stripe_payment_description( $post_data, $order ) { | |
// Get the order number | |
$order = wc_get_order( $order->get_order_number() ); | |
// Get the order iterms | |
$items = $order->get_items(); | |
// Check if it's crowdfunding produ ct | |
$is_crowdfunding = get_post_meta( $order->get_order_number(), 'is_crowdfunding_order', true ); |
This file contains 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 send_email_after_signup( $user_id ) { | |
$student_id = tutils()->get_user_id($user_id); | |
$student = get_userdata($student_id); | |
$site_url = get_bloginfo( 'url' ); | |
$site_name = get_bloginfo( 'name' ); | |
$display_name = $student->display_name; | |
$user_email = $student->user_email; |
This file contains 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 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
/* | |
On the Enrolled Course page, You can see all the enrolled courses, right? Now, if you click on the title of the course you will be redirected to the course page. | |
Okay, but if you want to redirect the user to the first lesson of any course then what? Well, use this code: | |
Go to wp-content/plugins/tutor/templates/dashboard/enrolled-courses.php at line number 39. Here you can see this code: | |
*/ | |
$custom_url = home_url($post->post_type.'/'.$post->post_name); |
This file contains 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 | |
get_header(); | |
get_template_part('lib/sub-header'); ?> | |
<div class="<?php tutor_container_classes() ?>"> | |
<div class="tutor-archive"> | |
<?php | |
$course_filter = (bool) tutor_utils()->get_option('course_archive_filter', false); | |
$supported_filters = tutor_utils()->get_option('supported_course_filters', array()); | |
| |
if ($course_filter && count($supported_filters)) { |