403Webshell
Server IP : 82.64.35.208  /  Your IP : 192.168.65.1
Web Server : Apache/2.4.68 (Debian)
System : Linux 079bc81edf51 6.12.76-linuxkit #1 SMP Tue Jul 21 14:38:37 UTC 2026 aarch64
User : root ( 0)
PHP Version : 8.3.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/html/wp-content/plugins/wpforms-lite/src/Integrations/Square/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/wp-content/plugins/wpforms-lite/src/Integrations/Square//Tasks.php
<?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;
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit