Current Path: > home > codekrsu > > ameliagraphics.com > wp-content > plugins > woocommerce > src > > > Admin >
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
API | Directory | - | - | |
BlockTemplates | Directory | - | - | |
Composer | Directory | - | - | |
DateTimeProvider | Directory | - | - | |
Features | Directory | - | - | |
Marketing | Directory | - | - | |
Notes | Directory | - | - | |
Overrides | Directory | - | - | |
PluginsInstallLoggers | Directory | - | - | |
PluginsProvider | Directory | - | - | |
RemoteInboxNotifications | Directory | - | - | |
RemoteSpecs | Directory | - | - | |
Schedulers | Directory | - | - | |
DataSourcePoller.php | File | 2215 bytes | April 10 2024 16:54:10. | |
DeprecatedClassFacade.php | File | 3271 bytes | December 18 2024 22:19:16. | |
FeaturePlugin.php | File | 955 bytes | May 13 2022 03:11:34. | |
Loader.php | File | 2750 bytes | March 26 2024 16:56:02. | |
PageController.php | File | 18719 bytes | May 12 2025 21:07:28. | |
PluginsHelper.php | File | 38035 bytes | June 23 2025 19:46:28. | |
PluginsInstaller.php | File | 3444 bytes | April 20 2022 06:50:54. | |
ReportCSVEmail.php | File | 4162 bytes | May 12 2025 21:07:28. | |
ReportCSVExporter.php | File | 10372 bytes | March 03 2025 22:28:12. | |
ReportExporter.php | File | 6431 bytes | March 21 2023 20:45:06. | |
ReportsSync.php | File | 6084 bytes | April 19 2023 03:03:20. | |
WCAdminHelper.php | File | 6888 bytes | April 22 2025 15:40:34. |
<?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() ); } }
SILENT KILLER Tool