PluginProbe
Hello Plus / 1.5.2
Hello Plus v1.5.2
trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.2 1.1.3 1.2.0 1.2.1 1.3.0 1.4.0 1.4.1 1.5.0 1.5.1 1.5.2 1.5.3 1.6.0 1.6.1 1.6.2 1.7.0 1.7.1 1.7.2 1.7.3 All 30 releases
hello-plus / modules / admin / components / notificator.php

notificator.php in Hello Plus 1.5.2, at modules/admin/components/notificator.php

29 lines 717 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace HelloPlus\Modules\Admin\Components;
3
4 if ( ! defined( 'ABSPATH' ) ) {
5 exit; // Exit if accessed directly.
6 }
7
8 use Elementor\WPNotificationsPackage\V110\Notifications as Notifications_SDK;
9
10 class Notificator {
11 private ?Notifications_SDK $notificator = null;
12
13 public function get_notifications_by_conditions( $force_request = false ) {
14 return $this->notificator->get_notifications_by_conditions( $force_request );
15 }
16
17 public function __construct() {
18 if ( ! class_exists( 'Elementor\WPNotificationsPackage\V110\Notifications' ) ) {
19 require_once HELLOPLUS_PATH . '/vendor/autoload.php';
20 }
21
22 $this->notificator = new Notifications_SDK(
23 'hello-plus',
24 HELLOPLUS_VERSION,
25 'ehp'
26 );
27 }
28 }
29