# learnpress/4.1.6.9.4/inc/class-lp-theme-support.php

LearnPress – WordPress LMS Plugin for Create and Sell Online Courses, version 4.1.6.9.4. 42 lines.

- Page: https://pluginprobe.com/plugins/learnpress/4.1.6.9.4/code/inc/class-lp-theme-support.php
- Raw: https://pluginprobe.com/plugins/learnpress/4.1.6.9.4/raw/inc/class-lp-theme-support.php
- Modified: 2022-08-16T05:12:32+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/learnpress/4.1.6.9.4/code/inc/class-lp-theme-support.php#L10-L20`.

```php
<?php

/**
 * Class LP_Theme_Support
 *
 * @since 4.x.x
 */
class LP_Theme_Support {

	/**
	 * @var LP_Theme_Support_Base
	 */
	public $theme = null;

	/**
	 * LP_Theme_Support constructor.
	 */
	public function __construct() {
		$template      = get_template();
		$theme_support = LP_PLUGIN_PATH . "inc/theme-support/{$template}/class-{$template}.php";

		if ( file_exists( $theme_support ) ) {
			$this->theme = include_once $theme_support;
		}
	}

	/**
	 * @return LP_Theme_Support
	 */
	public static function instance() {
		static $instance = null;

		if ( ! $instance ) {
			$instance = new self();
		}

		return $instance;
	}
}

return LP_Theme_Support::instance();

```
