Skip to content
View nayeemch's full-sized avatar
🏆
Dev
🏆
Dev
Block or Report

Block or report nayeemch

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned

  1. Advanced Course Filter Advanced Course Filter
    1
    <?php /* Template Name: Tutor Advanced Course Filter */?>
    2
    
                  
    3
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.3/css/bootstrap.min.css">
    4
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.11.2/css/all.min.css">
    5
    <style>
  2. This code will help you to change ba... This code will help you to change base slug `courses` to your preferred slug, replace `example-course-slug` with your own slug.
    1
    
                  
    2
    add_filter('tutor_courses_base_slug', 'change_tutor_course_slug');
    3
    /**
    4
     * @param $slug
    5
     * @return string
  3. Change Primary/Main author Change Primary/Main author
    1
    function tutor_primary_author() {
    2
    	if ( function_exists('tutor')) {
    3
    		$tutor_post_type = tutor()->course_post_type;
    4
    		add_post_type_support( $tutor_post_type, 'author' );
    5
    	}
  4. Automatically approve Tutor LMS inst... Automatically approve Tutor LMS instructor right after register. No manual approval required.
    1
    /**
    2
    * Required Tutor LMS v.1.6.0
    3
    */
    4
    
                  
    5
    add_action('tutor_new_instructor_after', 'approve_new_instructor_immediately');
  5. Right sidebar to left in single cour... Right sidebar to left in single course view
    1
    <?php
    2
    /**
    3
     * Template for displaying single course
    4
     *
    5
     * @since v.1.0.0
  6. autocomplete WooCommerce orders autocomplete WooCommerce orders
    1
    /**
    2
     * Auto Complete WooCommerce orders.
    3
     */
    4
    add_action( 'woocommerce_thankyou', 'custom_woocommerce_auto_complete_order' );
    5
    function custom_woocommerce_auto_complete_order( $order_id ) {