[ 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: find-customer-by-email.php
<?php /** * FindCustomerByEmail. * php version 5.6 * * @category FindCustomerByEmail * @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 OsCustomerModel; use SureTriggers\Integrations\AutomateAction; use SureTriggers\Integrations\LatePoint\LatePoint; use SureTriggers\Traits\SingletonLoader; use Exception; /** * FindCustomerByEmail * * @category FindCustomerByEmail * @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 FindCustomerByEmail extends AutomateAction { /** * Integration type. * * @var string */ public $integration = 'LatePoint'; /** * Action name. * * @var string */ public $action = 'lp_find_customer_by_email'; use SingletonLoader; /** * Register action. * * @param array $actions action data. * @return array */ public function register( $actions ) { $actions[ $this->integration ][ $this->action ] = [ 'label' => __( 'Find Customer By Email', 'suretriggers' ), 'action' => 'lp_find_customer_by_email', '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 selectedOptions. * * @throws Exception Exception. * * @return array */ public function _action_listener( $user_id, $automation_id, $fields, $selected_options ) { return LatePoint::find_object_by_email( $selected_options, 'Customer' ); } } FindCustomerByEmail::get_instance();