| Server IP : 3.104.177.69 / Your IP : 216.73.216.186 Web Server : Apache System : Linux ip-172-26-13-94 6.1.0-41-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.158-1 (2025-11-09) x86_64 User : daemon ( 1) PHP Version : 8.2.28 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /bitnami/wordpress/wp-content/plugins/wpforms-lite/src/Integrations/Square/ |
Upload File : |
<?php
namespace WPForms\Integrations\Square;
use WPForms\Tasks\Actions\SquareSubscriptionTransactionIDTask;
/**
* Register tasks.
*
* @since 1.9.5
*/
class Tasks {
/**
* Initialize.
*
* @since 1.9.5
*/
public function init() {
$this->hooks();
}
/**
* Frontend hooks.
*
* @since 1.9.5
*/
private function hooks() {
add_filter( 'wpforms_tasks_get_tasks', [ $this, 'register' ] );
}
/**
* Add class to registered tasks array.
*
* @since 1.9.5
*
* @param array $tasks Array of tasks.
*
* @return array
*/
public function register( $tasks ): array {
$tasks = (array) $tasks;
$tasks[] = SquareSubscriptionTransactionIDTask::class;
return $tasks;
}
}