| Server IP : 198.38.94.67 / Your IP : 216.73.217.142 Web Server : LiteSpeed System : Linux d6054.dxb1.stableserver.net 5.14.0-570.25.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 9 04:57:09 EDT 2025 x86_64 User : azfilmst ( 1070) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/azfilmst/alizamani.com/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;
}
}