HEX
Server: LiteSpeed
System: Linux l24.yourwebhosting.net 5.14.0-611.54.3.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:31:24 EDT 2026 x86_64
User: turkishi (1582)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //proc/self/cwd/wp-content/plugins/learnpress/inc/TemplateHooks/Profile/ProfileOrdersTemplate.php
<?php
/**
 * Class ProfileOrdersTemplate.
 *
 * @since 4.2.6.2
 * @version 1.0.0
 */
namespace LearnPress\TemplateHooks\Profile;

use LearnPress\Helpers\Template;

class ProfileOrdersTemplate {
	public static function instance() {
		static $instance = null;

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

		return $instance;
	}

	public static function tab_content() {
		do_action( 'learn-press/profile/layout/orders' );
	}

	protected function __construct() {
		add_action( 'learn-press/profile/layout/orders', [ $this, 'sections' ], 2 );
	}

	public static function init() {
		self::instance();
	}

	public function sections( $data ) {
		echo '<div class="profile-orders">';
		Template::instance()->get_template(
			LP_PLUGIN_PATH . 'templates/profile/tabs/orders/list.php'
		);
		Template::instance()->get_template(
			LP_PLUGIN_PATH . 'templates/profile/tabs/orders/recover-order.php'
		);
		echo '</div>';
	}
}