| Server IP : 69.72.244.102 / Your IP : 216.73.216.164 Web Server : LiteSpeed System : Linux s3434.fra1.stableserver.net 4.18.0-513.24.1.lve.2.el8.x86_64 #1 SMP Fri May 24 12:42:50 UTC 2024 x86_64 User : konzalta ( 1271) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/konzalta/public_html/wp-content/plugins/tutor/classes/ |
Upload File : |
<?php
/**
* Tutor base class
*
* @package Tutor\Base
* @author Themeum <support@themeum.com>
* @link https://themeum.com
* @since 1.0.0
*/
namespace TUTOR;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Tutor base class
*
* @since 1.0.0
*/
class Tutor_Base {
/**
* Course post type
*
* @since 1.0.0
*
* @var string
*/
public $course_post_type;
/**
* Lesson post type
*
* @since 1.0.0
*
* @var string
*/
public $lesson_post_type;
/**
* Lesson permalink
*
* @since 1.0.0
*
* @var string
*/
public $lesson_base_permalink;
/**
* Course base permalink
*
* @since 2.5.0
*
* @var string
*/
public $course_base_permalink;
/**
* Quiz permalink
*
* @since 2.6.0
*
* @var string
*/
public $quiz_base_permalink;
/**
* Assignment permalink
*
* @since 2.6.0
*
* @var string
*/
public $assignment_base_permalink;
/**
* Register hooks
*
* @since 1.0.0
*/
public function __construct() {
$this->course_post_type = tutor()->course_post_type;
$this->lesson_post_type = tutor()->lesson_post_type;
$this->course_base_permalink = tutor_utils()->get_option( 'course_permalink_base', 'courses' );
$this->lesson_base_permalink = tutor_utils()->get_option( 'lesson_permalink_base', 'lessons' );
$this->quiz_base_permalink = tutor_utils()->get_option( 'quiz_permalink_base', 'quizzes' );
$this->assignment_base_permalink = tutor_utils()->get_option( 'assignment_permalink_base', 'assignments' );
}
}