PHP 8.0.30
Preview: plugin-data-sender.php Size: 634 B
/home/certprox/test.certproxywizard.com/wp-content/plugins/elementskit-lite/libs/framework/classes/plugin-data-sender.php

<?php

namespace ElementsKit_Lite\Libs\Framework\Classes;

use ElementsKit_Lite\Traits\Singleton;

defined( 'ABSPATH' ) || exit;

class Plugin_Data_Sender {
	use Singleton;

	public function __construct() {}

	private function getUrl( $route ) {
		return trailingslashit(\ElementsKit_Lite::api_url() . $route);
	}

	public function sendEmailSubscribeData( $route, $data ) {
		return wp_remote_post(
			$this->getUrl( $route ),
			array(
				'method'      => 'POST',
				'headers'     => array(
					'Accept'       => '*/*',
					'Content-Type' => 'application/json'
				),
				'body'        => wp_json_encode( $data ),
			)
		);
	}
}

Directory Contents

Dirs: 0 × Files: 7

Name Size Perms Modified Actions
5.71 KB lrw-r--r-- 2026-03-10 10:30:55
Edit Download
2.85 KB lrw-r--r-- 2026-03-10 10:30:55
Edit Download
634 B lrw-r--r-- 2026-03-10 10:30:55
Edit Download
3.19 KB lrw-r--r-- 2026-03-10 10:30:55
Edit Download
469 B lrw-r--r-- 2026-03-10 10:30:55
Edit Download
2.98 KB lrw-r--r-- 2026-03-10 10:30:55
Edit Download
2.35 KB lrw-r--r-- 2026-03-10 10:30:55
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).