This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

Application::define_tables()

Register custom tables within $wpdb object.


Source

File: classes/Application.php

	private function define_tables() {
		global $wpdb;

		// List of tables without prefixes.
		$tables = [
			'dozent_completes'             => 'dozent_completes',
			'dozent_instructor_courses'    => 'dozent_instructor_courses',
			'dozent_reviews'               => 'dozent_reviews',
			'dozent_enrols'                => 'dozent_enrols',
			'dozent_withdrawal'            => 'dozent_withdrawal',
			'dozent_earnings'              => 'dozent_earnings',
			'dozent_quiz_questions'        => 'dozent_quiz_questions',
			'dozent_quiz_question_options' => 'dozent_quiz_question_options',
			'dozent_quiz_attempts'         => 'dozent_quiz_attempts',
			'dozent_quiz_answers'          => 'dozent_quiz_answers',
		];

		foreach ( $tables as $name => $table ) {
			$wpdb->$name    = $wpdb->prefix . $table;
			$wpdb->tables[] = $table;
		}
	}