✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ server366.web-hosting.com ​🇻​♯➤ 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP 🇾​♯➤ 2025

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 67.223.118.204 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.216.243
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗙𝗙 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ 𝗔𝗟𝗟 𝗪𝗢𝗥𝗞𝗜𝗡𝗚....

𝗛𝗢𝗠𝗘
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /home/builxejc/public_html/wp-content/plugins/woocommerce/src/Admin//ReportCSVEmail.php
<?php
/**
 * Handles emailing users CSV Export download links.
 */

namespace Automattic\WooCommerce\Admin;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * Include dependencies.
 */
if ( ! class_exists( 'WC_Email', false ) ) {
	include_once WC_ABSPATH . 'includes/emails/class-wc-email.php';
}

/**
 * ReportCSVEmail Class.
 */
class ReportCSVEmail extends \WC_Email {

	/**
	 * Report labels.
	 *
	 * @var array
	 */
	protected $report_labels;

	/**
	 * Report type (e.g. 'customers').
	 *
	 * @var string
	 */
	protected $report_type;

	/**
	 * Download URL.
	 *
	 * @var string
	 */
	protected $download_url;

	/**
	 * Constructor.
	 */
	public function __construct() {
		$this->id             = 'admin_report_export_download';
		$this->template_base  = WC()->plugin_path() . '/includes/react-admin/emails/';
		$this->template_html  = 'html-admin-report-export-download.php';
		$this->template_plain = 'plain-admin-report-export-download.php';

		/**
		 * Used to customise report email labels.
		 *
		 * @since 9.9.0
		 *
		 * @param string[] $labels An array of labels.
		 *
		 * @return string[] An Array of labels.
		 */
		$this->report_labels = apply_filters(
			'woocommerce_report_export_email_labels',
			array(
				'categories' => __( 'Categories', 'woocommerce' ),
				'coupons'    => __( 'Coupons', 'woocommerce' ),
				'customers'  => __( 'Customers', 'woocommerce' ),
				'downloads'  => __( 'Downloads', 'woocommerce' ),
				'orders'     => __( 'Orders', 'woocommerce' ),
				'products'   => __( 'Products', 'woocommerce' ),
				'revenue'    => __( 'Revenue', 'woocommerce' ),
				'stock'      => __( 'Stock', 'woocommerce' ),
				'taxes'      => __( 'Taxes', 'woocommerce' ),
				'variations' => __( 'Variations', 'woocommerce' ),
			)
		);

		// Call parent constructor.
		parent::__construct();
	}

	/**
	 * This email has no user-facing settings.
	 */
	public function init_form_fields() {}

	/**
	 * This email has no user-facing settings.
	 */
	public function init_settings() {}

	/**
	 * Return email type.
	 *
	 * @return string
	 */
	public function get_email_type() {
		return class_exists( 'DOMDocument' ) ? 'html' : 'plain';
	}

	/**
	 * Get email heading.
	 *
	 * @return string
	 */
	public function get_default_heading() {
		return __( 'Your Report Download', 'woocommerce' );
	}

	/**
	 * Get email subject.
	 *
	 * @return string
	 */
	public function get_default_subject() {
		return __( '[{site_title}]: Your {report_name} Report download is ready', 'woocommerce' );
	}

	/**
	 * Get content html.
	 *
	 * @return string
	 */
	public function get_content_html() {
		return wc_get_template_html(
			$this->template_html,
			array(
				'report_name'   => $this->report_type,
				'download_url'  => $this->download_url,
				'email_heading' => $this->get_heading(),
				'sent_to_admin' => true,
				'plain_text'    => false,
				'email'         => $this,
			),
			'',
			$this->template_base
		);
	}

	/**
	 * Get content plain.
	 *
	 * @return string
	 */
	public function get_content_plain() {
		return wc_get_template_html(
			$this->template_plain,
			array(
				'report_name'   => $this->report_type,
				'download_url'  => $this->download_url,
				'email_heading' => $this->get_heading(),
				'sent_to_admin' => true,
				'plain_text'    => true,
				'email'         => $this,
			),
			'',
			$this->template_base
		);
	}

	/**
	 * Trigger the sending of this email.
	 *
	 * @param int    $user_id User ID to email.
	 * @param string $report_type The type of report export being emailed.
	 * @param string $download_url The URL for downloading the report.
	 */
	public function trigger( $user_id, $report_type, $download_url ) {
		$user               = new \WP_User( $user_id );
		$this->recipient    = $user->user_email;
		$this->download_url = $download_url;

		if ( isset( $this->report_labels[ $report_type ] ) ) {
			$this->report_type                   = $this->report_labels[ $report_type ];
			$this->placeholders['{report_name}'] = $this->report_type;
		}

		$this->send(
			$this->get_recipient(),
			$this->get_subject(),
			$this->get_content(),
			$this->get_headers(),
			$this->get_attachments()
		);
	}
}


Current_dir [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
9 Jun 2026 8.39 AM
builxejc / builxejc
0755
API
--
9 Jun 2026 8.39 AM
builxejc / builxejc
0755
BlockTemplates
--
9 Jun 2026 8.39 AM
builxejc / builxejc
0755
Composer
--
9 Jun 2026 8.39 AM
builxejc / builxejc
0755
DateTimeProvider
--
9 Jun 2026 8.39 AM
builxejc / builxejc
0755
Features
--
9 Jun 2026 8.39 AM
builxejc / builxejc
0755
Marketing
--
9 Jun 2026 8.39 AM
builxejc / builxejc
0755
Notes
--
9 Jun 2026 8.39 AM
builxejc / builxejc
0755
Overrides
--
9 Jun 2026 8.39 AM
builxejc / builxejc
0755
PluginsInstallLoggers
--
9 Jun 2026 8.39 AM
builxejc / builxejc
0755
PluginsProvider
--
9 Jun 2026 8.39 AM
builxejc / builxejc
0755
RemoteInboxNotifications
--
9 Jun 2026 8.39 AM
builxejc / builxejc
0755
RemoteSpecs
--
9 Jun 2026 8.39 AM
builxejc / builxejc
0755
Schedulers
--
9 Jun 2026 8.39 AM
builxejc / builxejc
0755
DataSourcePoller.php
2.163 KB
10 Apr 2024 4.54 PM
builxejc / builxejc
0644
DeprecatedClassFacade.php
3.194 KB
18 Dec 2024 10.19 PM
builxejc / builxejc
0644
FeaturePlugin.php
0.933 KB
13 May 2022 3.11 AM
builxejc / builxejc
0644
Loader.php
2.686 KB
26 Mar 2024 4.56 PM
builxejc / builxejc
0644
PageController.php
20.976 KB
23 Feb 2026 5.58 PM
builxejc / builxejc
0644
PluginsHelper.php
39.252 KB
30 Mar 2026 5.12 PM
builxejc / builxejc
0644
PluginsInstaller.php
3.363 KB
20 Apr 2022 6.50 AM
builxejc / builxejc
0644
ReportCSVEmail.php
4.064 KB
12 May 2025 9.07 PM
builxejc / builxejc
0644
ReportCSVExporter.php
10.129 KB
3 Mar 2025 10.28 PM
builxejc / builxejc
0644
ReportExporter.php
6.28 KB
21 Mar 2023 8.45 PM
builxejc / builxejc
0644
ReportsSync.php
6.692 KB
23 Feb 2026 5.58 PM
builxejc / builxejc
0644
WCAdminHelper.php
6.727 KB
22 Apr 2025 3.40 PM
builxejc / builxejc
0644

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF