| @@ -41,19 +41,10 @@ | ||
| 41 | 41 | /** |
| 42 | 42 | * Register hooks |
| 43 | 43 | * |
| 44 | 44 | * @since 1.0.0 |
| 45 | - * @since 3.8.0 | |
| 46 | - * | |
| 47 | - * @param bool $register_hooks register hooks or not. | |
| 48 | - * | |
| 49 | - * @return void | |
| 50 | 45 | */ |
| 51 | - public function __construct( $register_hooks = true ) { | |
| 52 | - if ( ! $register_hooks ) { | |
| 53 | - return; | |
| 54 | - } | |
| 55 | - | |
| 46 | + public function __construct() { | |
| 56 | 47 | add_shortcode( 'tutor_student_registration_form', array( $this, 'student_registration_form' ) ); |
| 57 | 48 | add_shortcode( 'tutor_dashboard', array( $this, 'tutor_dashboard' ) ); |
| 58 | 49 | add_shortcode( 'tutor_instructor_registration_form', array( $this, 'instructor_registration_form' ) ); |
| 59 | 50 | add_shortcode( 'tutor_course', array( $this, 'tutor_course' ) ); |
| @@ -406,9 +397,9 @@ | ||
| 406 | 397 | $course_taxonomy = CourseModel::COURSE_CATEGORY; |
| 407 | 398 | |
| 408 | 399 | $remaining_categories = $wpdb->get_var( |
| 409 | 400 | $wpdb->prepare( |
| 410 | - "SELECT | |
| 401 | + "SElECT | |
| 411 | 402 | COUNT(*) AS total |
| 412 | 403 | FROM {$wpdb->terms} AS term |
| 413 | 404 | INNER JOIN {$wpdb->term_taxonomy} AS taxonomy |
| 414 | 405 | ON taxonomy.term_id = term.term_id AND taxonomy.taxonomy = %s |
| @@ -421,9 +412,9 @@ | ||
| 421 | 412 | ); |
| 422 | 413 | |
| 423 | 414 | $add_categories = $wpdb->get_results( |
| 424 | 415 | $wpdb->prepare( |
| 425 | - "SELECT | |
| 416 | + "SElECT | |
| 426 | 417 | * |
| 427 | 418 | FROM {$wpdb->terms} term |
| 428 | 419 | INNER JOIN {$wpdb->term_taxonomy} as taxonomy |
| 429 | 420 | ON taxonomy.term_id = term.term_id AND taxonomy.taxonomy = %s |