X7ROOT File Manager
Current Path:
/home/gfecatvj/4abetter.us/wp-content/plugins/woocommerce/includes
home
/
gfecatvj
/
4abetter.us
/
wp-content
/
plugins
/
woocommerce
/
includes
/
📁
..
📁
abstracts
📁
admin
📁
blocks
📄
class-wc-ajax.php
(119.74 KB)
📄
class-wc-auth.php
(12.69 KB)
📄
class-wc-autoloader.php
(3.32 KB)
📄
class-wc-background-emailer.php
(4.58 KB)
📄
class-wc-background-updater.php
(3.45 KB)
📄
class-wc-brands-brand-settings-manager.php
(1.78 KB)
📄
class-wc-brands-coupons.php
(6.89 KB)
📄
class-wc-brands.php
(32.93 KB)
📄
class-wc-breadcrumb.php
(9.49 KB)
📄
class-wc-cache-helper.php
(12.65 KB)
📄
class-wc-cart-fees.php
(3.37 KB)
📄
class-wc-cart-session.php
(21.18 KB)
📄
class-wc-cart-totals.php
(28.48 KB)
📄
class-wc-cart.php
(71.23 KB)
📄
class-wc-checkout.php
(50.15 KB)
📄
class-wc-cli.php
(3.34 KB)
📄
class-wc-comments.php
(22.63 KB)
📄
class-wc-countries.php
(49.16 KB)
📄
class-wc-coupon.php
(39.93 KB)
📄
class-wc-customer-download-log.php
(3.37 KB)
📄
class-wc-customer-download.php
(10.34 KB)
📄
class-wc-customer.php
(32.54 KB)
📄
class-wc-data-exception.php
(1.29 KB)
📄
class-wc-data-store.php
(6.59 KB)
📄
class-wc-datetime.php
(2.26 KB)
📄
class-wc-deprecated-action-hooks.php
(6.59 KB)
📄
class-wc-deprecated-filter-hooks.php
(7.34 KB)
📄
class-wc-discounts.php
(36.64 KB)
📄
class-wc-download-handler.php
(28.37 KB)
📄
class-wc-emails.php
(38.15 KB)
📄
class-wc-embed.php
(4.24 KB)
📄
class-wc-form-handler.php
(45.89 KB)
📄
class-wc-frontend-scripts.php
(29.76 KB)
📄
class-wc-geo-ip.php
(30.41 KB)
📄
class-wc-geolite-integration.php
(1.99 KB)
📄
class-wc-geolocation.php
(11.32 KB)
📄
class-wc-https.php
(4.33 KB)
📄
class-wc-install.php
(108.25 KB)
📄
class-wc-integrations.php
(1.28 KB)
📄
class-wc-log-levels.php
(3.9 KB)
📄
class-wc-logger.php
(9.38 KB)
📄
class-wc-meta-data.php
(2.21 KB)
📄
class-wc-order-factory.php
(8.52 KB)
📄
class-wc-order-item-coupon.php
(4.08 KB)
📄
class-wc-order-item-fee.php
(9.21 KB)
📄
class-wc-order-item-meta.php
(5.8 KB)
📄
class-wc-order-item-product.php
(15.84 KB)
📄
class-wc-order-item-shipping.php
(8.8 KB)
📄
class-wc-order-item-tax.php
(6.49 KB)
📄
class-wc-order-item.php
(18.54 KB)
📄
class-wc-order-query.php
(2.55 KB)
📄
class-wc-order-refund.php
(5.99 KB)
📄
class-wc-order.php
(75.39 KB)
📄
class-wc-payment-gateways.php
(15.73 KB)
📄
class-wc-payment-tokens.php
(6.24 KB)
📄
class-wc-post-data.php
(34.55 KB)
📄
class-wc-post-types.php
(32 KB)
📄
class-wc-privacy-background-process.php
(1.79 KB)
📄
class-wc-privacy-erasers.php
(13.61 KB)
📄
class-wc-privacy-exporters.php
(14.69 KB)
📄
class-wc-privacy.php
(17.22 KB)
📄
class-wc-product-attribute.php
(6.97 KB)
📄
class-wc-product-download.php
(12.25 KB)
📄
class-wc-product-external.php
(4.98 KB)
📄
class-wc-product-factory.php
(3.88 KB)
📄
class-wc-product-grouped.php
(6.53 KB)
📄
class-wc-product-query.php
(2.28 KB)
📄
class-wc-product-simple.php
(2.7 KB)
📄
class-wc-product-variable.php
(22.41 KB)
📄
class-wc-product-variation.php
(20.18 KB)
📄
class-wc-query.php
(33.36 KB)
📄
class-wc-rate-limiter.php
(4 KB)
📄
class-wc-regenerate-images-request.php
(7.74 KB)
📄
class-wc-regenerate-images.php
(15.44 KB)
📄
class-wc-register-wp-admin-settings.php
(5.05 KB)
📄
class-wc-rest-authentication.php
(21.55 KB)
📄
class-wc-rest-exception.php
(276 B)
📄
class-wc-session-handler.php
(22.54 KB)
📄
class-wc-shipping-rate.php
(9.34 KB)
📄
class-wc-shipping-zone.php
(13.08 KB)
📄
class-wc-shipping-zones.php
(4.01 KB)
📄
class-wc-shipping.php
(12.85 KB)
📄
class-wc-shortcodes.php
(18.82 KB)
📄
class-wc-structured-data.php
(23.73 KB)
📄
class-wc-tax.php
(38.31 KB)
📄
class-wc-template-loader.php
(20.28 KB)
📄
class-wc-tracker.php
(49.37 KB)
📄
class-wc-validation.php
(5.79 KB)
📄
class-wc-webhook.php
(29.41 KB)
📄
class-woocommerce.php
(59.56 KB)
📁
cli
📁
customizer
📁
data-stores
📁
emails
📁
export
📁
gateways
📁
import
📁
integrations
📁
interfaces
📁
legacy
📁
libraries
📁
log-handlers
📁
payment-tokens
📁
product-usage
📁
queue
📁
react-admin
📁
rest-api
📁
shipping
📁
shortcodes
📁
theme-support
📁
tracks
📁
traits
📁
walkers
📄
wc-account-functions.php
(14.11 KB)
📄
wc-attribute-functions.php
(21.85 KB)
📄
wc-brands-functions.php
(4.17 KB)
📄
wc-cart-functions.php
(21.05 KB)
📄
wc-conditional-functions.php
(15.53 KB)
📄
wc-core-functions.php
(86.78 KB)
📄
wc-coupon-functions.php
(5.55 KB)
📄
wc-deprecated-functions.php
(38.12 KB)
📄
wc-formatting-functions.php
(49.85 KB)
📄
wc-notice-functions.php
(8.08 KB)
📄
wc-order-functions.php
(42.75 KB)
📄
wc-order-item-functions.php
(5.03 KB)
📄
wc-order-step-logger-functions.php
(5.01 KB)
📄
wc-page-functions.php
(9.43 KB)
📄
wc-product-functions.php
(57.36 KB)
📄
wc-rest-functions.php
(13.92 KB)
📄
wc-stock-functions.php
(17.13 KB)
📄
wc-template-functions.php
(138.36 KB)
📄
wc-template-hooks.php
(12.84 KB)
📄
wc-term-functions.php
(23.84 KB)
📄
wc-update-functions.php
(94.71 KB)
📄
wc-user-functions.php
(34.2 KB)
📄
wc-webhook-functions.php
(5.77 KB)
📄
wc-widget-functions.php
(2.01 KB)
📁
wccom-site
📁
widgets
Editing: class-wc-background-emailer.php
<?php /** * Background Emailer * * @version 3.0.1 * @package WooCommerce\Classes */ use Automattic\Jetpack\Constants; defined( 'ABSPATH' ) || exit; if ( ! class_exists( 'WC_Background_Process', false ) ) { include_once dirname( __FILE__ ) . '/abstracts/class-wc-background-process.php'; } /** * WC_Background_Emailer Class. */ class WC_Background_Emailer extends WC_Background_Process { /** * Initiate new background process. */ public function __construct() { // Uses unique prefix per blog so each blog has separate queue. $this->prefix = 'wp_' . get_current_blog_id(); $this->action = 'wc_emailer'; // Dispatch queue after shutdown. add_action( 'shutdown', array( $this, 'dispatch_queue' ), 100 ); parent::__construct(); } /** * Schedule fallback event. */ protected function schedule_event() { if ( ! wp_next_scheduled( $this->cron_hook_identifier ) ) { wp_schedule_event( time() + 10, $this->cron_interval_identifier, $this->cron_hook_identifier ); } } /** * Task * * Override this method to perform any actions required on each * queue item. Return the modified item for further processing * in the next pass through. Or, return false to remove the * item from the queue. * * @param array $callback Update callback function. * @return mixed */ protected function task( $callback ) { if ( isset( $callback['filter'], $callback['args'] ) ) { try { WC_Emails::send_queued_transactional_email( $callback['filter'], $callback['args'] ); } catch ( Exception $e ) { if ( Constants::is_true( 'WP_DEBUG' ) ) { trigger_error( 'Transactional email triggered fatal error for callback ' . esc_html( $callback['filter'] ), E_USER_WARNING ); // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_trigger_error } } } return false; } /** * Finishes replying to the client, but keeps the process running for further (async) code execution. * * @see https://core.trac.wordpress.org/ticket/41358 . */ protected function close_http_connection() { // Only 1 PHP process can access a session object at a time, close this so the next request isn't kept waiting. // @codingStandardsIgnoreStart if ( session_id() ) { session_write_close(); } // @codingStandardsIgnoreEnd wc_set_time_limit( 0 ); // fastcgi_finish_request is the cleanest way to send the response and keep the script running, but not every server has it. if ( is_callable( 'fastcgi_finish_request' ) ) { fastcgi_finish_request(); } else { // Fallback: send headers and flush buffers. if ( ! headers_sent() ) { header( 'Connection: close' ); } @ob_end_flush(); // phpcs:ignore Generic.PHP.NoSilencedErrors.Discouraged flush(); } } /** * Save and run queue. */ public function dispatch_queue() { if ( ! empty( $this->data ) ) { $this->close_http_connection(); $this->save()->dispatch(); } } /** * Get post args * * @return array */ protected function get_post_args() { if ( property_exists( $this, 'post_args' ) ) { return $this->post_args; } // Pass cookies through with the request so nonces function. $cookies = array(); foreach ( $_COOKIE as $name => $value ) { // WPCS: input var ok. if ( 'PHPSESSID' === $name ) { continue; } $cookies[] = new WP_Http_Cookie( array( 'name' => $name, 'value' => $value, ) ); } return array( 'timeout' => 0.01, 'blocking' => false, 'body' => $this->data, 'cookies' => $cookies, 'sslverify' => apply_filters( 'https_local_ssl_verify', false ), ); } /** * Handle * * Pass each queue item to the task handler, while remaining * within server memory and time limit constraints. */ protected function handle() { $this->lock_process(); do { $batch = $this->get_batch(); if ( empty( $batch->data ) ) { break; } foreach ( $batch->data as $key => $value ) { $task = $this->task( $value ); if ( false !== $task ) { $batch->data[ $key ] = $task; } else { unset( $batch->data[ $key ] ); } // Update batch before sending more to prevent duplicate email possibility. $this->update( $batch->key, $batch->data ); if ( $this->time_exceeded() || $this->memory_exceeded() ) { // Batch limits reached. break; } } if ( empty( $batch->data ) ) { $this->delete( $batch->key ); } } while ( ! $this->time_exceeded() && ! $this->memory_exceeded() && ! $this->is_queue_empty() ); $this->unlock_process(); // Start next batch or complete process. if ( ! $this->is_queue_empty() ) { $this->dispatch(); } else { $this->complete(); } } }
Upload File
Create Folder