[ SYSTEM ]: Linux wordpress 6.1.0-41-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.158-1 (2025-11-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
/
fluentcommunity
/
triggers
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📄 comment-created.php
1,547 B
SET
[ EDIT ]
|
[ DEL ]
📄 comment-updated.php
1,551 B
SET
[ EDIT ]
|
[ DEL ]
📄 course-published.php
1,517 B
SET
[ EDIT ]
|
[ DEL ]
📄 user-unenrolls-from-course.php
2,235 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: course-published.php
<?php /** * CoursePublished. * php version 5.6 * * @category CoursePublished * @package SureTriggers * @author BSF * @license https://www.gnu.org/licenses/gpl-3.0.html GPLv3 * @link https://www.brainstormforce.com/ * @since 1.0.0 */ namespace SureTriggers\Integrations\FluentCommunity\Triggers; use SureTriggers\Controllers\AutomationController; use SureTriggers\Traits\SingletonLoader; if ( ! class_exists( 'CoursePublished' ) ) : /** * CoursePublished * * @category CoursePublished * @package SureTriggers * @since 1.0.0 */ class CoursePublished { /** * Integration type. * * @var string */ public $integration = 'FluentCommunity'; /** * Trigger name. * * @var string */ public $trigger = 'fc_course_published'; use SingletonLoader; /** * Constructor * * @since 1.0.0 */ public function __construct() { add_action( 'fluent_community/course/published', [ $this, 'trigger_listener' ], 10, 1 ); } /** * Trigger listener. * * @param object $course The newly created course object. * @return void */ public function trigger_listener( $course ) { if ( empty( $course ) ) { return; } // Prepare context with the course object. $context = [ 'course' => $course, ]; AutomationController::sure_trigger_handle_trigger( [ 'trigger' => $this->trigger, 'context' => $context, ] ); } } // Initialize the class. CoursePublished::get_instance(); endif;