# storeengine/2.2.0/includes/frontend.php

StoreEngine — Complete eCommerce Solution with Memberships, Licensing, Affiliates &amp; More, version 2.2.0. 44 lines.

- Page: https://pluginprobe.com/plugins/storeengine/2.2.0/code/includes/frontend.php
- Raw: https://pluginprobe.com/plugins/storeengine/2.2.0/raw/includes/frontend.php
- Modified: 2025-10-01T11:54:54+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/storeengine/2.2.0/code/includes/frontend.php#L10-L20`.

```php
<?php

namespace StoreEngine;

use StoreEngine;

use StoreEngine\Utils\Helper;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

class Frontend {

	public static function init() {
		$self = new self();
		$self->dispatch_hooks();
	}

	public function dispatch_hooks() {
		if ( StoreEngine\Utils\Helper::get_settings( 'enable_floating_cart', true ) ) {
			Frontend\FloatingCart::init();
		}

		Frontend\Template::init();
		Frontend\Coupon::init();
		Frontend\Comments::init();
		add_action( 'init', array( $this, 'init_frontend' ) );
	}

	public function init_frontend() {
		if ( StoreEngine\Utils\Helper::is_request( 'frontend' ) ) {
			StoreEngine::init()->load_cart();
		}

		$user = wp_get_current_user();

		if ( $user && in_array( 'storeengine_customer', (array) $user->roles, true ) ) {
			add_filter( 'show_admin_bar', '__return_false' );
		}
	}

}

```
