[ SYSTEM ]: Linux wordpress 6.1.0-44-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
[ SERVER ]: Apache/2.4.66 (Debian) | PHP: 8.2.30
[ USER ]: www-data | IP: 172.19.30.54
GEFORCE FILE MANAGER
/
var
/
www
/
html
/
wordpress
/
wp-content
/
plugins
/
suretriggers
/
src
/
Integrations
/
wplms
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📁 triggers
SET
[ DEL ]
📄 wplms.php
1,497 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: wplms.php
<?php /** * WPLMS core integrations file * * @since 1.0.0 * @package SureTrigger */ namespace SureTriggers\Integrations\WPLMS; use SureTriggers\Controllers\IntegrationsController; use SureTriggers\Integrations\Integrations; use SureTriggers\Traits\SingletonLoader; /** * Class SureTrigger * * @package SureTriggers\Integrations\WPLMS */ class WPLMS extends Integrations { use SingletonLoader; /** * ID * * @var string */ protected $id = 'WPLMS'; /** * SureTrigger constructor. */ public function __construct() { $this->name = __( 'WPLMS', 'suretriggers' ); $this->description = __( 'WPLMS is a social network plugin for WordPress that allows you to quickly add a social network.', 'suretriggers' ); $this->icon_url = SURE_TRIGGERS_URL . 'assets/icons/WPLMS.svg'; parent::__construct(); } /** * Get customer context data. * * @param int $course_id course. * * @return array */ public static function get_wplms_course_context( $course_id ) { $courses = get_post( $course_id ); if ( is_null( $courses ) ) { return []; } $context['wplms_course'] = $courses->ID; $context['wplms_course_name'] = $courses->post_name; $context['wplms_course_title'] = $courses->post_title; return $context; } /** * Is Plugin depended plugin is installed or not. * * @return bool */ public function is_plugin_installed() { return class_exists( 'WPLMS_Init' ); } } IntegrationsController::register( WPLMS::class );