[ 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
/
late-point
/
actions
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📄 add-booking-to-order.php
7,339 B
SET
[ EDIT ]
|
[ DEL ]
📄 cancel-booking.php
2,516 B
SET
[ EDIT ]
|
[ DEL ]
📄 create-agent.php
4,378 B
SET
[ EDIT ]
|
[ DEL ]
📄 create-booking.php
1,789 B
SET
[ EDIT ]
|
[ DEL ]
📄 create-coupon.php
3,724 B
SET
[ EDIT ]
|
[ DEL ]
📄 create-customer.php
3,351 B
SET
[ EDIT ]
|
[ DEL ]
📄 create-order.php
6,925 B
SET
[ EDIT ]
|
[ DEL ]
📄 find-agent-by-email.php
1,847 B
SET
[ EDIT ]
|
[ DEL ]
📄 find-booking-by-id.php
2,428 B
SET
[ EDIT ]
|
[ DEL ]
📄 find-customer-by-email.php
1,881 B
SET
[ EDIT ]
|
[ DEL ]
📄 list-bundles.php
1,890 B
SET
[ EDIT ]
|
[ DEL ]
📄 update-booking.php
1,797 B
SET
[ EDIT ]
|
[ DEL ]
📄 update-coupon.php
4,295 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: list-bundles.php
<?php /** * ListBundles. * php version 5.6 * * @category ListBundles * @package SureTriggers * @author BSF <username@example.com> * @license https://www.gnu.org/licenses/gpl-3.0.html GPLv3 * @link https://www.brainstormforce.com/ * @since 1.0.0 */ namespace SureTriggers\Integrations\LatePoint\Actions; use Exception; use SureTriggers\Integrations\AutomateAction; use SureTriggers\Traits\SingletonLoader; /** * ListBundles * * @category ListBundles * @package SureTriggers * @author BSF <username@example.com> * @license https://www.gnu.org/licenses/gpl-3.0.html GPLv3 * @link https://www.brainstormforce.com/ * @since 1.0.0 */ class ListBundles extends AutomateAction { /** * Integration type. * * @var string */ public $integration = 'LatePoint'; /** * Action name. * * @var string */ public $action = 'lp_get_all_bundles'; use SingletonLoader; /** * Register a action. * * @param array $actions actions. * @return array */ public function register( $actions ) { $actions[ $this->integration ][ $this->action ] = [ 'label' => __( 'List Bundles', 'suretriggers' ), 'action' => $this->action, 'function' => [ $this, 'action_listener' ], ]; return $actions; } /** * Action listener. * * @param int $user_id user_id. * @param int $automation_id automation_id. * @param array $fields fields. * @param array $selected_options selected_options. * * @return array|void * * @throws Exception Exception. */ public function _action_listener( $user_id, $automation_id, $fields, $selected_options ) { global $wpdb; $bundles = $wpdb->get_results( "SELECT * FROM {$wpdb->prefix}latepoint_bundles", ARRAY_A ); if ( empty( $bundles ) ) { return [ 'message' => 'No bundles found in the database.' ]; } return $bundles; } } ListBundles::get_instance();