parent
31fdfcdec4
commit
66c61eebc8
|
@ -133,6 +133,6 @@ class WC_Admin_Addons {
|
|||
$theme = wp_get_theme();
|
||||
$section_keys = array_keys( $sections );
|
||||
$current_section = isset( $_GET['section'] ) ? sanitize_text_field( $_GET['section'] ) : current( $section_keys );
|
||||
include_once( 'views/html-admin-page-addons.php' );
|
||||
include_once( dirname( __FILE__ ) . '/views/html-admin-page-addons.php' );
|
||||
}
|
||||
}
|
||||
|
|
|
@ -46,8 +46,8 @@ class WC_Admin_Dashboard {
|
|||
public function status_widget() {
|
||||
global $wpdb;
|
||||
|
||||
include_once( 'reports/class-wc-admin-report.php' );
|
||||
include_once( 'reports/class-wc-report-sales-by-date.php' );
|
||||
include_once( dirname( __FILE__ ) . '/reports/class-wc-admin-report.php' );
|
||||
include_once( dirname( __FILE__ ) . '/reports/class-wc-report-sales-by-date.php' );
|
||||
|
||||
$reports = new WC_Admin_Report();
|
||||
$sales_by_date = new WC_Report_Sales_By_Date();
|
||||
|
|
|
@ -50,7 +50,7 @@ class WC_Admin_Importers {
|
|||
}
|
||||
|
||||
// includes
|
||||
require 'importers/class-wc-tax-rate-importer.php';
|
||||
require( dirname( __FILE__ ) . '/importers/class-wc-tax-rate-importer.php' );
|
||||
|
||||
// Dispatch
|
||||
$importer = new WC_Tax_Rate_Importer();
|
||||
|
|
|
@ -93,7 +93,7 @@ class WC_Admin_Post_Types {
|
|||
}
|
||||
|
||||
// Meta-Box Class
|
||||
include_once( 'class-wc-admin-meta-boxes.php' );
|
||||
include_once( dirname( __FILE__ ) . '/class-wc-admin-meta-boxes.php' );
|
||||
|
||||
// Download permissions
|
||||
add_action( 'woocommerce_process_product_file_download_paths', array( $this, 'process_product_file_download_paths' ), 10, 3 );
|
||||
|
|
|
@ -30,8 +30,8 @@ class WC_Admin_Reports {
|
|||
$current_tab = ! empty( $_GET['tab'] ) ? sanitize_title( $_GET['tab'] ) : $first_tab[0];
|
||||
$current_report = isset( $_GET['report'] ) ? sanitize_title( $_GET['report'] ) : current( array_keys( $reports[ $current_tab ]['reports'] ) );
|
||||
|
||||
include_once( 'reports/class-wc-admin-report.php' );
|
||||
include_once( 'views/html-admin-page-reports.php' );
|
||||
include_once( dirname( __FILE__ ) . '/reports/class-wc-admin-report.php' );
|
||||
include_once( dirname( __FILE__ ) . '/views/html-admin-page-reports.php' );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -47,7 +47,7 @@ class WC_Admin_Settings {
|
|||
if ( empty( self::$settings ) ) {
|
||||
$settings = array();
|
||||
|
||||
include_once( 'settings/class-wc-settings-page.php' );
|
||||
include_once( dirname( __FILE__ ) . '/settings/class-wc-settings-page.php' );
|
||||
|
||||
$settings[] = include( 'settings/class-wc-settings-general.php' );
|
||||
$settings[] = include( 'settings/class-wc-settings-products.php' );
|
||||
|
@ -166,7 +166,7 @@ class WC_Admin_Settings {
|
|||
// Get tabs for the settings page
|
||||
$tabs = apply_filters( 'woocommerce_settings_tabs_array', array() );
|
||||
|
||||
include 'views/html-admin-settings.php';
|
||||
include( dirname( __FILE__ ) . '/views/html-admin-settings.php' );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -21,14 +21,14 @@ class WC_Admin_Status {
|
|||
* Handles output of the reports page in admin.
|
||||
*/
|
||||
public static function output() {
|
||||
include_once( 'views/html-admin-page-status.php' );
|
||||
include_once( dirname( __FILE__ ) . '/views/html-admin-page-status.php' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Handles output of report.
|
||||
*/
|
||||
public static function status_report() {
|
||||
include_once( 'views/html-admin-page-status-report.php' );
|
||||
include_once( dirname( __FILE__ ) . '/views/html-admin-page-status-report.php' );
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -138,7 +138,7 @@ class WC_Admin_Status {
|
|||
echo '<div class="updated inline"><p>' . __( 'Your changes have been saved.', 'woocommerce' ) . '</p></div>';
|
||||
}
|
||||
|
||||
include_once( 'views/html-admin-page-status-tools.php' );
|
||||
include_once( dirname( __FILE__ ) . '/views/html-admin-page-status-tools.php' );
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -205,7 +205,7 @@ class WC_Admin_Status {
|
|||
$viewed_log = current( $logs );
|
||||
}
|
||||
|
||||
include_once( 'views/html-admin-page-status-logs.php' );
|
||||
include_once( dirname( __FILE__ ) . '/views/html-admin-page-status-logs.php' );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -442,7 +442,7 @@ class WC_Admin_Webhooks {
|
|||
add_filter( 'comments_clauses', array( 'WC_Comments', 'exclude_webhook_comments' ), 10, 1 );
|
||||
|
||||
if ( $logs ) {
|
||||
include_once( 'settings/views/html-webhook-logs.php' );
|
||||
include_once( dirname( __FILE__ ) . '/settings/views/html-webhook-logs.php' );
|
||||
} else {
|
||||
echo '<p>' . __( 'This Webhook has no log yet.', 'woocommerce' ) . '</p>';
|
||||
}
|
||||
|
|
|
@ -43,34 +43,34 @@ class WC_Admin {
|
|||
* Include any classes we need within admin.
|
||||
*/
|
||||
public function includes() {
|
||||
include_once( 'wc-admin-functions.php' );
|
||||
include_once( 'wc-meta-box-functions.php' );
|
||||
include_once( 'class-wc-admin-post-types.php' );
|
||||
include_once( 'class-wc-admin-taxonomies.php' );
|
||||
include_once( 'class-wc-admin-menus.php' );
|
||||
include_once( 'class-wc-admin-notices.php' );
|
||||
include_once( 'class-wc-admin-assets.php' );
|
||||
include_once( 'class-wc-admin-api-keys.php' );
|
||||
include_once( 'class-wc-admin-webhooks.php' );
|
||||
include_once( 'class-wc-admin-pointers.php' );
|
||||
include_once( dirname( __FILE__ ) . '/wc-admin-functions.php' );
|
||||
include_once( dirname( __FILE__ ) . '/wc-meta-box-functions.php' );
|
||||
include_once( dirname( __FILE__ ) . '/class-wc-admin-post-types.php' );
|
||||
include_once( dirname( __FILE__ ) . '/class-wc-admin-taxonomies.php' );
|
||||
include_once( dirname( __FILE__ ) . '/class-wc-admin-menus.php' );
|
||||
include_once( dirname( __FILE__ ) . '/class-wc-admin-notices.php' );
|
||||
include_once( dirname( __FILE__ ) . '/class-wc-admin-assets.php' );
|
||||
include_once( dirname( __FILE__ ) . '/class-wc-admin-api-keys.php' );
|
||||
include_once( dirname( __FILE__ ) . '/class-wc-admin-webhooks.php' );
|
||||
include_once( dirname( __FILE__ ) . '/class-wc-admin-pointers.php' );
|
||||
|
||||
// Help Tabs
|
||||
if ( apply_filters( 'woocommerce_enable_admin_help_tab', true ) ) {
|
||||
include_once( 'class-wc-admin-help.php' );
|
||||
include_once( dirname( __FILE__ ) . '/class-wc-admin-help.php' );
|
||||
}
|
||||
|
||||
// Setup/welcome
|
||||
if ( ! empty( $_GET['page'] ) ) {
|
||||
switch ( $_GET['page'] ) {
|
||||
case 'wc-setup' :
|
||||
include_once( 'class-wc-admin-setup-wizard.php' );
|
||||
include_once( dirname( __FILE__ ) . '/class-wc-admin-setup-wizard.php' );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// Importers
|
||||
if ( defined( 'WP_LOAD_IMPORTERS' ) ) {
|
||||
include_once( 'class-wc-admin-importers.php' );
|
||||
include_once( dirname( __FILE__ ) . '/class-wc-admin-importers.php' );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
}
|
||||
|
||||
if ( ! class_exists( 'WC_Report_Stock' ) ) {
|
||||
require_once( 'class-wc-report-stock.php' );
|
||||
require_once( dirname( __FILE__ ) . '/class-wc-report-stock.php' );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -5,7 +5,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
}
|
||||
|
||||
if ( ! class_exists( 'WC_Report_Stock' ) ) {
|
||||
require_once( 'class-wc-report-stock.php' );
|
||||
require_once( dirname( __FILE__ ) . '/class-wc-report-stock.php' );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -5,7 +5,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
}
|
||||
|
||||
if ( ! class_exists( 'WC_Report_Stock' ) ) {
|
||||
require_once( 'class-wc-report-stock.php' );
|
||||
require_once( dirname( __FILE__ ) . '/class-wc-report-stock.php' );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -217,7 +217,7 @@ class WC_Settings_Shipping extends WC_Settings_Page {
|
|||
) );
|
||||
wp_enqueue_script( 'wc-shipping-zone-methods' );
|
||||
|
||||
include_once( 'views/html-admin-page-shipping-zone-methods.php' );
|
||||
include_once( dirname( __FILE__ ) . '/views/html-admin-page-shipping-zone-methods.php' );
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -246,7 +246,7 @@ class WC_Settings_Shipping extends WC_Settings_Page {
|
|||
) );
|
||||
wp_enqueue_script( 'wc-shipping-zones' );
|
||||
|
||||
include_once( 'views/html-admin-page-shipping-zones.php' );
|
||||
include_once( dirname( __FILE__ ) . '/views/html-admin-page-shipping-zones.php' );
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -277,7 +277,7 @@ class WC_Settings_Shipping extends WC_Settings_Page {
|
|||
$shipping_method->display_errors();
|
||||
}
|
||||
|
||||
include_once( 'views/html-admin-page-shipping-zones-instance.php' );
|
||||
include_once( dirname( __FILE__ ) . '/views/html-admin-page-shipping-zones-instance.php' );
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -308,7 +308,7 @@ class WC_Settings_Shipping extends WC_Settings_Page {
|
|||
'wc-shipping-class-count' => __( 'Product Count', 'woocommerce' ),
|
||||
) );
|
||||
|
||||
include_once( 'views/html-admin-page-shipping-classes.php' );
|
||||
include_once( dirname( __FILE__ ) . '/views/html-admin-page-shipping-classes.php' );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -135,7 +135,7 @@ function wc_create_page( $slug, $option = '', $page_title = '', $page_content =
|
|||
function woocommerce_admin_fields( $options ) {
|
||||
|
||||
if ( ! class_exists( 'WC_Admin_Settings' ) ) {
|
||||
include 'class-wc-admin-settings.php';
|
||||
include( dirname( __FILE__ ) . '/class-wc-admin-settings.php' );
|
||||
}
|
||||
|
||||
WC_Admin_Settings::output_fields( $options );
|
||||
|
@ -150,7 +150,7 @@ function woocommerce_admin_fields( $options ) {
|
|||
function woocommerce_update_options( $options, $data = null ) {
|
||||
|
||||
if ( ! class_exists( 'WC_Admin_Settings' ) ) {
|
||||
include 'class-wc-admin-settings.php';
|
||||
include( dirname( __FILE__ ) . '/class-wc-admin-settings.php' );
|
||||
}
|
||||
|
||||
WC_Admin_Settings::save_fields( $options, $data );
|
||||
|
@ -166,7 +166,7 @@ function woocommerce_update_options( $options, $data = null ) {
|
|||
function woocommerce_settings_get_option( $option_name, $default = '' ) {
|
||||
|
||||
if ( ! class_exists( 'WC_Admin_Settings' ) ) {
|
||||
include 'class-wc-admin-settings.php';
|
||||
include( dirname( __FILE__ ) . '/class-wc-admin-settings.php' );
|
||||
}
|
||||
|
||||
return WC_Admin_Settings::get_option( $option_name, $default );
|
||||
|
|
|
@ -15,7 +15,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
}
|
||||
|
||||
if ( ! class_exists( 'WC_Legacy_API' ) ) {
|
||||
include_once( 'class-wc-legacy-api.php' );
|
||||
include_once( dirname( __FILE__ ) . '/class-wc-legacy-api.php' );
|
||||
}
|
||||
|
||||
class WC_API extends WC_Legacy_API {
|
||||
|
@ -129,46 +129,46 @@ class WC_API extends WC_Legacy_API {
|
|||
*/
|
||||
private function rest_api_includes() {
|
||||
// Exception handler.
|
||||
include_once( 'api/class-wc-rest-exception.php' );
|
||||
include_once( dirname( __FILE__ ) . '/api/class-wc-rest-exception.php' );
|
||||
|
||||
// Authentication.
|
||||
include_once( 'api/class-wc-rest-authentication.php' );
|
||||
include_once( dirname( __FILE__ ) . '/api/class-wc-rest-authentication.php' );
|
||||
|
||||
// WP-API classes and functions.
|
||||
include_once( 'vendor/wp-rest-functions.php' );
|
||||
include_once( dirname( __FILE__ ) . '/vendor/wp-rest-functions.php' );
|
||||
if ( ! class_exists( 'WP_REST_Controller' ) ) {
|
||||
include_once( 'vendor/class-wp-rest-controller.php' );
|
||||
include_once( dirname( __FILE__ ) . '/vendor/class-wp-rest-controller.php' );
|
||||
}
|
||||
|
||||
// Abstract controllers.
|
||||
include_once( 'abstracts/abstract-wc-rest-controller.php' );
|
||||
include_once( 'abstracts/abstract-wc-rest-posts-controller.php' );
|
||||
include_once( 'abstracts/abstract-wc-rest-terms-controller.php' );
|
||||
include_once( 'abstracts/abstract-wc-settings-api.php' );
|
||||
include_once( dirname( __FILE__ ) . '/abstracts/abstract-wc-rest-controller.php' );
|
||||
include_once( dirname( __FILE__ ) . '/abstracts/abstract-wc-rest-posts-controller.php' );
|
||||
include_once( dirname( __FILE__ ) . '/abstracts/abstract-wc-rest-terms-controller.php' );
|
||||
include_once( dirname( __FILE__ ) . '/abstracts/abstract-wc-settings-api.php' );
|
||||
|
||||
// REST API controllers.
|
||||
include_once( 'api/class-wc-rest-coupons-controller.php' );
|
||||
include_once( 'api/class-wc-rest-customer-downloads-controller.php' );
|
||||
include_once( 'api/class-wc-rest-customers-controller.php' );
|
||||
include_once( 'api/class-wc-rest-order-notes-controller.php' );
|
||||
include_once( 'api/class-wc-rest-order-refunds-controller.php' );
|
||||
include_once( 'api/class-wc-rest-orders-controller.php' );
|
||||
include_once( 'api/class-wc-rest-product-attribute-terms-controller.php' );
|
||||
include_once( 'api/class-wc-rest-product-attributes-controller.php' );
|
||||
include_once( 'api/class-wc-rest-product-categories-controller.php' );
|
||||
include_once( 'api/class-wc-rest-product-reviews-controller.php' );
|
||||
include_once( 'api/class-wc-rest-product-shipping-classes-controller.php' );
|
||||
include_once( 'api/class-wc-rest-product-tags-controller.php' );
|
||||
include_once( 'api/class-wc-rest-products-controller.php' );
|
||||
include_once( 'api/class-wc-rest-report-sales-controller.php' );
|
||||
include_once( 'api/class-wc-rest-report-top-sellers-controller.php' );
|
||||
include_once( 'api/class-wc-rest-reports-controller.php' );
|
||||
include_once( 'api/class-wc-rest-settings-controller.php' );
|
||||
include_once( 'api/class-wc-rest-settings-options-controller.php' );
|
||||
include_once( 'api/class-wc-rest-tax-classes-controller.php' );
|
||||
include_once( 'api/class-wc-rest-taxes-controller.php' );
|
||||
include_once( 'api/class-wc-rest-webhook-deliveries.php' );
|
||||
include_once( 'api/class-wc-rest-webhooks-controller.php' );
|
||||
include_once( dirname( __FILE__ ) . '/api/class-wc-rest-coupons-controller.php' );
|
||||
include_once( dirname( __FILE__ ) . '/api/class-wc-rest-customer-downloads-controller.php' );
|
||||
include_once( dirname( __FILE__ ) . '/api/class-wc-rest-customers-controller.php' );
|
||||
include_once( dirname( __FILE__ ) . '/api/class-wc-rest-order-notes-controller.php' );
|
||||
include_once( dirname( __FILE__ ) . '/api/class-wc-rest-order-refunds-controller.php' );
|
||||
include_once( dirname( __FILE__ ) . '/api/class-wc-rest-orders-controller.php' );
|
||||
include_once( dirname( __FILE__ ) . '/api/class-wc-rest-product-attribute-terms-controller.php' );
|
||||
include_once( dirname( __FILE__ ) . '/api/class-wc-rest-product-attributes-controller.php' );
|
||||
include_once( dirname( __FILE__ ) . '/api/class-wc-rest-product-categories-controller.php' );
|
||||
include_once( dirname( __FILE__ ) . '/api/class-wc-rest-product-reviews-controller.php' );
|
||||
include_once( dirname( __FILE__ ) . '/api/class-wc-rest-product-shipping-classes-controller.php' );
|
||||
include_once( dirname( __FILE__ ) . '/api/class-wc-rest-product-tags-controller.php' );
|
||||
include_once( dirname( __FILE__ ) . '/api/class-wc-rest-products-controller.php' );
|
||||
include_once( dirname( __FILE__ ) . '/api/class-wc-rest-report-sales-controller.php' );
|
||||
include_once( dirname( __FILE__ ) . '/api/class-wc-rest-report-top-sellers-controller.php' );
|
||||
include_once( dirname( __FILE__ ) . '/api/class-wc-rest-reports-controller.php' );
|
||||
include_once( dirname( __FILE__ ) . '/api/class-wc-rest-settings-controller.php' );
|
||||
include_once( dirname( __FILE__ ) . '/api/class-wc-rest-settings-options-controller.php' );
|
||||
include_once( dirname( __FILE__ ) . '/api/class-wc-rest-tax-classes-controller.php' );
|
||||
include_once( dirname( __FILE__ ) . '/api/class-wc-rest-taxes-controller.php' );
|
||||
include_once( dirname( __FILE__ ) . '/api/class-wc-rest-webhook-deliveries.php' );
|
||||
include_once( dirname( __FILE__ ) . '/api/class-wc-rest-webhooks-controller.php' );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -16,8 +16,8 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
exit;
|
||||
}
|
||||
|
||||
include_once( 'libraries/wp-async-request.php' );
|
||||
include_once( 'libraries/wp-background-process.php' );
|
||||
include_once( dirname( __FILE__ ) . '/libraries/wp-async-request.php' );
|
||||
include_once( dirname( __FILE__ ) . '/libraries/wp-background-process.php' );
|
||||
|
||||
/**
|
||||
* WC_Background_Updater Class.
|
||||
|
@ -99,7 +99,7 @@ class WC_Background_Updater extends WP_Background_Process {
|
|||
|
||||
$logger = new WC_Logger();
|
||||
|
||||
include_once( 'wc-update-functions.php' );
|
||||
include_once( dirname( __FILE__ ) . '/wc-update-functions.php' );
|
||||
|
||||
if ( is_callable( $callback ) ) {
|
||||
$logger->add( 'wc_db_updates', sprintf( 'Running %s callback', $callback ) );
|
||||
|
|
|
@ -129,7 +129,7 @@ class WC_Emails {
|
|||
*/
|
||||
public function init() {
|
||||
// Include email classes
|
||||
include_once( 'emails/class-wc-email.php' );
|
||||
include_once( dirname( __FILE__ ) . '/emails/class-wc-email.php' );
|
||||
|
||||
$this->emails['WC_Email_New_Order'] = include( 'emails/class-wc-email-new-order.php' );
|
||||
$this->emails['WC_Email_Cancelled_Order'] = include( 'emails/class-wc-email-cancelled-order.php' );
|
||||
|
@ -147,7 +147,7 @@ class WC_Emails {
|
|||
|
||||
// include css inliner
|
||||
if ( ! class_exists( 'Emogrifier' ) && class_exists( 'DOMDocument' ) ) {
|
||||
include_once( 'libraries/class-emogrifier.php' );
|
||||
include_once( dirname( __FILE__ ) . '/libraries/class-emogrifier.php' );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1169,7 +1169,7 @@ class WC_Geo_IP {
|
|||
*/
|
||||
public static function log( $message ) {
|
||||
if ( ! class_exists( 'WC_Logger' ) ) {
|
||||
include_once( 'class-wc-logger.php' );
|
||||
include_once( dirname( __FILE__ ) . '/class-wc-logger.php' );
|
||||
}
|
||||
|
||||
if ( empty( self::$log ) ) {
|
||||
|
|
|
@ -218,7 +218,7 @@ class WC_Geolocation {
|
|||
*/
|
||||
private static function geolocate_via_db( $ip_address ) {
|
||||
if ( ! class_exists( 'WC_Geo_IP' ) ) {
|
||||
include_once( 'class-wc-geo-ip.php' );
|
||||
include_once( dirname( __FILE__ ) . '/class-wc-geo-ip.php' );
|
||||
}
|
||||
|
||||
$gi = new WC_Geo_IP();
|
||||
|
|
|
@ -96,7 +96,7 @@ class WC_Install {
|
|||
* Init background updates
|
||||
*/
|
||||
public static function init_background_updater() {
|
||||
include_once( 'class-wc-background-updater.php' );
|
||||
include_once( dirname( __FILE__ ) . '/class-wc-background-updater.php' );
|
||||
self::$background_updater = new WC_Background_Updater();
|
||||
}
|
||||
|
||||
|
@ -139,7 +139,7 @@ class WC_Install {
|
|||
}
|
||||
|
||||
// Ensure needed classes are loaded
|
||||
include_once( 'admin/class-wc-admin-notices.php' );
|
||||
include_once( dirname( __FILE__ ) . '/admin/class-wc-admin-notices.php' );
|
||||
|
||||
self::create_options();
|
||||
self::create_tables();
|
||||
|
@ -287,7 +287,7 @@ class WC_Install {
|
|||
* Create pages that the plugin relies on, storing page id's in variables.
|
||||
*/
|
||||
public static function create_pages() {
|
||||
include_once( 'admin/wc-admin-functions.php' );
|
||||
include_once( dirname( __FILE__ ) . '/admin/wc-admin-functions.php' );
|
||||
|
||||
$pages = apply_filters( 'woocommerce_create_pages', array(
|
||||
'shop' => array(
|
||||
|
@ -326,7 +326,7 @@ class WC_Install {
|
|||
*/
|
||||
private static function create_options() {
|
||||
// Include settings so that we can run through defaults
|
||||
include_once( 'admin/class-wc-admin-settings.php' );
|
||||
include_once( dirname( __FILE__ ) . '/admin/class-wc-admin-settings.php' );
|
||||
|
||||
$settings = WC_Admin_Settings::get_settings_pages();
|
||||
|
||||
|
|
|
@ -124,23 +124,23 @@ class WC_Legacy_API {
|
|||
public function includes() {
|
||||
|
||||
// API server / response handlers.
|
||||
include_once( 'api/legacy/v3/class-wc-api-exception.php' );
|
||||
include_once( 'api/legacy/v3/class-wc-api-server.php' );
|
||||
include_once( 'api/legacy/v3/interface-wc-api-handler.php' );
|
||||
include_once( 'api/legacy/v3/class-wc-api-json-handler.php' );
|
||||
include_once( dirname( __FILE__ ) . '/api/legacy/v3/class-wc-api-exception.php' );
|
||||
include_once( dirname( __FILE__ ) . '/api/legacy/v3/class-wc-api-server.php' );
|
||||
include_once( dirname( __FILE__ ) . '/api/legacy/v3/interface-wc-api-handler.php' );
|
||||
include_once( dirname( __FILE__ ) . '/api/legacy/v3/class-wc-api-json-handler.php' );
|
||||
|
||||
// Authentication.
|
||||
include_once( 'api/legacy/v3/class-wc-api-authentication.php' );
|
||||
include_once( dirname( __FILE__ ) . '/api/legacy/v3/class-wc-api-authentication.php' );
|
||||
$this->authentication = new WC_API_Authentication();
|
||||
|
||||
include_once( 'api/legacy/v3/class-wc-api-resource.php' );
|
||||
include_once( 'api/legacy/v3/class-wc-api-coupons.php' );
|
||||
include_once( 'api/legacy/v3/class-wc-api-customers.php' );
|
||||
include_once( 'api/legacy/v3/class-wc-api-orders.php' );
|
||||
include_once( 'api/legacy/v3/class-wc-api-products.php' );
|
||||
include_once( 'api/legacy/v3/class-wc-api-reports.php' );
|
||||
include_once( 'api/legacy/v3/class-wc-api-taxes.php' );
|
||||
include_once( 'api/legacy/v3/class-wc-api-webhooks.php' );
|
||||
include_once( dirname( __FILE__ ) . '/api/legacy/v3/class-wc-api-resource.php' );
|
||||
include_once( dirname( __FILE__ ) . '/api/legacy/v3/class-wc-api-coupons.php' );
|
||||
include_once( dirname( __FILE__ ) . '/api/legacy/v3/class-wc-api-customers.php' );
|
||||
include_once( dirname( __FILE__ ) . '/api/legacy/v3/class-wc-api-orders.php' );
|
||||
include_once( dirname( __FILE__ ) . '/api/legacy/v3/class-wc-api-products.php' );
|
||||
include_once( dirname( __FILE__ ) . '/api/legacy/v3/class-wc-api-reports.php' );
|
||||
include_once( dirname( __FILE__ ) . '/api/legacy/v3/class-wc-api-taxes.php' );
|
||||
include_once( dirname( __FILE__ ) . '/api/legacy/v3/class-wc-api-webhooks.php' );
|
||||
|
||||
// Allow plugins to load other response handlers or resource classes.
|
||||
do_action( 'woocommerce_api_loaded' );
|
||||
|
@ -182,20 +182,20 @@ class WC_Legacy_API {
|
|||
private function handle_v1_rest_api_request() {
|
||||
|
||||
// Include legacy required files for v1 REST API request.
|
||||
include_once( 'api/legacy/v1/class-wc-api-server.php' );
|
||||
include_once( 'api/legacy/v1/interface-wc-api-handler.php' );
|
||||
include_once( 'api/legacy/v1/class-wc-api-json-handler.php' );
|
||||
include_once( 'api/legacy/v1/class-wc-api-xml-handler.php' );
|
||||
include_once( dirname( __FILE__ ) . '/api/legacy/v1/class-wc-api-server.php' );
|
||||
include_once( dirname( __FILE__ ) . '/api/legacy/v1/interface-wc-api-handler.php' );
|
||||
include_once( dirname( __FILE__ ) . '/api/legacy/v1/class-wc-api-json-handler.php' );
|
||||
include_once( dirname( __FILE__ ) . '/api/legacy/v1/class-wc-api-xml-handler.php' );
|
||||
|
||||
include_once( 'api/legacy/v1/class-wc-api-authentication.php' );
|
||||
include_once( dirname( __FILE__ ) . '/api/legacy/v1/class-wc-api-authentication.php' );
|
||||
$this->authentication = new WC_API_Authentication();
|
||||
|
||||
include_once( 'api/legacy/v1/class-wc-api-resource.php' );
|
||||
include_once( 'api/legacy/v1/class-wc-api-coupons.php' );
|
||||
include_once( 'api/legacy/v1/class-wc-api-customers.php' );
|
||||
include_once( 'api/legacy/v1/class-wc-api-orders.php' );
|
||||
include_once( 'api/legacy/v1/class-wc-api-products.php' );
|
||||
include_once( 'api/legacy/v1/class-wc-api-reports.php' );
|
||||
include_once( dirname( __FILE__ ) . '/api/legacy/v1/class-wc-api-resource.php' );
|
||||
include_once( dirname( __FILE__ ) . '/api/legacy/v1/class-wc-api-coupons.php' );
|
||||
include_once( dirname( __FILE__ ) . '/api/legacy/v1/class-wc-api-customers.php' );
|
||||
include_once( dirname( __FILE__ ) . '/api/legacy/v1/class-wc-api-orders.php' );
|
||||
include_once( dirname( __FILE__ ) . '/api/legacy/v1/class-wc-api-products.php' );
|
||||
include_once( dirname( __FILE__ ) . '/api/legacy/v1/class-wc-api-reports.php' );
|
||||
|
||||
// Allow plugins to load other response handlers or resource classes.
|
||||
do_action( 'woocommerce_api_loaded' );
|
||||
|
@ -228,21 +228,21 @@ class WC_Legacy_API {
|
|||
* @deprecated 2.6.0
|
||||
*/
|
||||
private function handle_v2_rest_api_request() {
|
||||
include_once( 'api/legacy/v2/class-wc-api-exception.php' );
|
||||
include_once( 'api/legacy/v2/class-wc-api-server.php' );
|
||||
include_once( 'api/legacy/v2/interface-wc-api-handler.php' );
|
||||
include_once( 'api/legacy/v2/class-wc-api-json-handler.php' );
|
||||
include_once( dirname( __FILE__ ) . '/api/legacy/v2/class-wc-api-exception.php' );
|
||||
include_once( dirname( __FILE__ ) . '/api/legacy/v2/class-wc-api-server.php' );
|
||||
include_once( dirname( __FILE__ ) . '/api/legacy/v2/interface-wc-api-handler.php' );
|
||||
include_once( dirname( __FILE__ ) . '/api/legacy/v2/class-wc-api-json-handler.php' );
|
||||
|
||||
include_once( 'api/legacy/v2/class-wc-api-authentication.php' );
|
||||
include_once( dirname( __FILE__ ) . '/api/legacy/v2/class-wc-api-authentication.php' );
|
||||
$this->authentication = new WC_API_Authentication();
|
||||
|
||||
include_once( 'api/legacy/v2/class-wc-api-resource.php' );
|
||||
include_once( 'api/legacy/v2/class-wc-api-coupons.php' );
|
||||
include_once( 'api/legacy/v2/class-wc-api-customers.php' );
|
||||
include_once( 'api/legacy/v2/class-wc-api-orders.php' );
|
||||
include_once( 'api/legacy/v2/class-wc-api-products.php' );
|
||||
include_once( 'api/legacy/v2/class-wc-api-reports.php' );
|
||||
include_once( 'api/legacy/v2/class-wc-api-webhooks.php' );
|
||||
include_once( dirname( __FILE__ ) . '/api/legacy/v2/class-wc-api-resource.php' );
|
||||
include_once( dirname( __FILE__ ) . '/api/legacy/v2/class-wc-api-coupons.php' );
|
||||
include_once( dirname( __FILE__ ) . '/api/legacy/v2/class-wc-api-customers.php' );
|
||||
include_once( dirname( __FILE__ ) . '/api/legacy/v2/class-wc-api-orders.php' );
|
||||
include_once( dirname( __FILE__ ) . '/api/legacy/v2/class-wc-api-products.php' );
|
||||
include_once( dirname( __FILE__ ) . '/api/legacy/v2/class-wc-api-reports.php' );
|
||||
include_once( dirname( __FILE__ ) . '/api/legacy/v2/class-wc-api-webhooks.php' );
|
||||
|
||||
// allow plugins to load other response handlers or resource classes.
|
||||
do_action( 'woocommerce_api_loaded' );
|
||||
|
|
|
@ -4,7 +4,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
}
|
||||
|
||||
if ( ! class_exists( 'WC_Session' ) ) {
|
||||
include_once( 'abstracts/abstract-wc-session.php' );
|
||||
include_once( dirname( __FILE__ ) . '/abstracts/abstract-wc-session.php' );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -60,11 +60,11 @@ class WC_Gateway_Paypal extends WC_Payment_Gateway {
|
|||
if ( ! $this->is_valid_for_use() ) {
|
||||
$this->enabled = 'no';
|
||||
} else {
|
||||
include_once( 'includes/class-wc-gateway-paypal-ipn-handler.php' );
|
||||
include_once( dirname( __FILE__ ) . '/includes/class-wc-gateway-paypal-ipn-handler.php' );
|
||||
new WC_Gateway_Paypal_IPN_Handler( $this->testmode, $this->receiver_email );
|
||||
|
||||
if ( $this->identity_token ) {
|
||||
include_once( 'includes/class-wc-gateway-paypal-pdt-handler.php' );
|
||||
include_once( dirname( __FILE__ ) . '/includes/class-wc-gateway-paypal-pdt-handler.php' );
|
||||
new WC_Gateway_Paypal_PDT_Handler( $this->testmode, $this->identity_token );
|
||||
}
|
||||
}
|
||||
|
@ -236,7 +236,7 @@ class WC_Gateway_Paypal extends WC_Payment_Gateway {
|
|||
* @return array
|
||||
*/
|
||||
public function process_payment( $order_id ) {
|
||||
include_once( 'includes/class-wc-gateway-paypal-request.php' );
|
||||
include_once( dirname( __FILE__ ) . '/includes/class-wc-gateway-paypal-request.php' );
|
||||
|
||||
$order = wc_get_order( $order_id );
|
||||
$paypal_request = new WC_Gateway_Paypal_Request( $this );
|
||||
|
@ -271,7 +271,7 @@ class WC_Gateway_Paypal extends WC_Payment_Gateway {
|
|||
return new WP_Error( 'error', __( 'Refund Failed: No transaction ID', 'woocommerce' ) );
|
||||
}
|
||||
|
||||
include_once( 'includes/class-wc-gateway-paypal-refund.php' );
|
||||
include_once( dirname( __FILE__ ) . '/includes/class-wc-gateway-paypal-refund.php' );
|
||||
|
||||
WC_Gateway_Paypal_Refund::$api_username = $this->get_option( 'api_username' );
|
||||
WC_Gateway_Paypal_Refund::$api_password = $this->get_option( 'api_password' );
|
||||
|
|
|
@ -4,7 +4,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
exit;
|
||||
}
|
||||
|
||||
include_once( 'class-wc-gateway-paypal-response.php' );
|
||||
include_once( dirname( __FILE__ ) . '/class-wc-gateway-paypal-response.php' );
|
||||
|
||||
/**
|
||||
* Handles responses from PayPal IPN.
|
||||
|
|
|
@ -4,7 +4,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
exit;
|
||||
}
|
||||
|
||||
include_once( 'class-wc-gateway-paypal-response.php' );
|
||||
include_once( dirname( __FILE__ ) . '/class-wc-gateway-paypal-response.php' );
|
||||
|
||||
/**
|
||||
* Handle PDT Responses from PayPal.
|
||||
|
|
|
@ -74,7 +74,7 @@ class WC_Gateway_Simplify_Commerce extends WC_Payment_Gateway_CC {
|
|||
*/
|
||||
protected function init_simplify_sdk() {
|
||||
// Include lib
|
||||
require_once( 'includes/Simplify.php' );
|
||||
require_once( dirname( __FILE__ ) . '/includes/Simplify.php' );
|
||||
|
||||
Simplify::$publicKey = $this->public_key;
|
||||
Simplify::$privateKey = $this->private_key;
|
||||
|
|
|
@ -15,19 +15,19 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
}
|
||||
|
||||
// Include widget classes.
|
||||
include_once( 'abstracts/abstract-wc-widget.php' );
|
||||
include_once( 'widgets/class-wc-widget-cart.php' );
|
||||
include_once( 'widgets/class-wc-widget-layered-nav-filters.php' );
|
||||
include_once( 'widgets/class-wc-widget-layered-nav.php' );
|
||||
include_once( 'widgets/class-wc-widget-price-filter.php' );
|
||||
include_once( 'widgets/class-wc-widget-product-categories.php' );
|
||||
include_once( 'widgets/class-wc-widget-product-search.php' );
|
||||
include_once( 'widgets/class-wc-widget-product-tag-cloud.php' );
|
||||
include_once( 'widgets/class-wc-widget-products.php' );
|
||||
include_once( 'widgets/class-wc-widget-rating-filter.php' );
|
||||
include_once( 'widgets/class-wc-widget-recent-reviews.php' );
|
||||
include_once( 'widgets/class-wc-widget-recently-viewed.php' );
|
||||
include_once( 'widgets/class-wc-widget-top-rated-products.php' );
|
||||
include_once( dirname( __FILE__ ) . '/abstracts/abstract-wc-widget.php' );
|
||||
include_once( dirname( __FILE__ ) . '/widgets/class-wc-widget-cart.php' );
|
||||
include_once( dirname( __FILE__ ) . '/widgets/class-wc-widget-layered-nav-filters.php' );
|
||||
include_once( dirname( __FILE__ ) . '/widgets/class-wc-widget-layered-nav.php' );
|
||||
include_once( dirname( __FILE__ ) . '/widgets/class-wc-widget-price-filter.php' );
|
||||
include_once( dirname( __FILE__ ) . '/widgets/class-wc-widget-product-categories.php' );
|
||||
include_once( dirname( __FILE__ ) . '/widgets/class-wc-widget-product-search.php' );
|
||||
include_once( dirname( __FILE__ ) . '/widgets/class-wc-widget-product-tag-cloud.php' );
|
||||
include_once( dirname( __FILE__ ) . '/widgets/class-wc-widget-products.php' );
|
||||
include_once( dirname( __FILE__ ) . '/widgets/class-wc-widget-rating-filter.php' );
|
||||
include_once( dirname( __FILE__ ) . '/widgets/class-wc-widget-recent-reviews.php' );
|
||||
include_once( dirname( __FILE__ ) . '/widgets/class-wc-widget-recently-viewed.php' );
|
||||
include_once( dirname( __FILE__ ) . '/widgets/class-wc-widget-top-rated-products.php' );
|
||||
|
||||
/**
|
||||
* Register Widgets.
|
||||
|
|
|
@ -26,7 +26,7 @@ $status_options = get_option( 'woocommerce_status_options', array() );
|
|||
|
||||
if ( ! empty( $status_options['uninstall_data'] ) ) {
|
||||
// Roles + caps.
|
||||
include_once( 'includes/class-wc-install.php' );
|
||||
include_once( dirname( __FILE__ ) . '/includes/class-wc-install.php' );
|
||||
WC_Install::remove_roles();
|
||||
|
||||
// Pages.
|
||||
|
|
|
@ -178,6 +178,7 @@ final class WooCommerce {
|
|||
$upload_dir = wp_upload_dir();
|
||||
|
||||
$this->define( 'WC_PLUGIN_FILE', __FILE__ );
|
||||
$this->define( 'WC_ABSPATH', dirname( __FILE__ ) . '/' );
|
||||
$this->define( 'WC_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
|
||||
$this->define( 'WC_VERSION', $this->version );
|
||||
$this->define( 'WOOCOMMERCE_VERSION', $this->version );
|
||||
|
@ -224,20 +225,20 @@ final class WooCommerce {
|
|||
* Include required core files used in admin and on the frontend.
|
||||
*/
|
||||
public function includes() {
|
||||
include_once( 'includes/class-wc-autoloader.php' );
|
||||
include_once( 'includes/wc-core-functions.php' );
|
||||
include_once( 'includes/class-wc-register-wp-admin-settings.php' );
|
||||
include_once( 'includes/wc-widget-functions.php' );
|
||||
include_once( 'includes/wc-webhook-functions.php' );
|
||||
include_once( 'includes/class-wc-install.php' );
|
||||
include_once( 'includes/class-wc-geolocation.php' );
|
||||
include_once( 'includes/class-wc-download-handler.php' );
|
||||
include_once( 'includes/class-wc-comments.php' );
|
||||
include_once( 'includes/class-wc-post-data.php' );
|
||||
include_once( 'includes/class-wc-ajax.php' );
|
||||
include_once( WC_ABSPATH . 'includes/class-wc-autoloader.php' );
|
||||
include_once( WC_ABSPATH . 'includes/wc-core-functions.php' );
|
||||
include_once( WC_ABSPATH . 'includes/class-wc-register-wp-admin-settings.php' );
|
||||
include_once( WC_ABSPATH . 'includes/wc-widget-functions.php' );
|
||||
include_once( WC_ABSPATH . 'includes/wc-webhook-functions.php' );
|
||||
include_once( WC_ABSPATH . 'includes/class-wc-install.php' );
|
||||
include_once( WC_ABSPATH . 'includes/class-wc-geolocation.php' );
|
||||
include_once( WC_ABSPATH . 'includes/class-wc-download-handler.php' );
|
||||
include_once( WC_ABSPATH . 'includes/class-wc-comments.php' );
|
||||
include_once( WC_ABSPATH . 'includes/class-wc-post-data.php' );
|
||||
include_once( WC_ABSPATH . 'includes/class-wc-ajax.php' );
|
||||
|
||||
if ( $this->is_request( 'admin' ) ) {
|
||||
include_once( 'includes/admin/class-wc-admin.php' );
|
||||
include_once( WC_ABSPATH . 'includes/admin/class-wc-admin.php' );
|
||||
}
|
||||
|
||||
if ( $this->is_request( 'frontend' ) ) {
|
||||
|
@ -245,36 +246,36 @@ final class WooCommerce {
|
|||
}
|
||||
|
||||
if ( $this->is_request( 'frontend' ) || $this->is_request( 'cron' ) ) {
|
||||
include_once( 'includes/class-wc-session-handler.php' );
|
||||
include_once( WC_ABSPATH . 'includes/class-wc-session-handler.php' );
|
||||
}
|
||||
|
||||
if ( $this->is_request( 'cron' ) && 'yes' === get_option( 'woocommerce_allow_tracking', 'no' ) ) {
|
||||
include_once( 'includes/class-wc-tracker.php' );
|
||||
include_once( WC_ABSPATH . 'includes/class-wc-tracker.php' );
|
||||
}
|
||||
|
||||
include_once( 'includes/class-wc-query.php' ); // The main query class
|
||||
include_once( 'includes/class-wc-api.php' ); // API Class
|
||||
include_once( 'includes/class-wc-auth.php' ); // Auth Class
|
||||
include_once( 'includes/class-wc-post-types.php' ); // Registers post types
|
||||
include_once( 'includes/abstracts/abstract-wc-data.php' ); // WC_Data for CRUD
|
||||
include_once( 'includes/abstracts/abstract-wc-payment-token.php' ); // Payment Tokens
|
||||
include_once( 'includes/abstracts/abstract-wc-product.php' ); // Products
|
||||
include_once( 'includes/abstracts/abstract-wc-order.php' ); // Orders
|
||||
include_once( 'includes/abstracts/abstract-wc-settings-api.php' ); // Settings API (for gateways, shipping, and integrations)
|
||||
include_once( 'includes/abstracts/abstract-wc-shipping-method.php' ); // A Shipping method
|
||||
include_once( 'includes/abstracts/abstract-wc-payment-gateway.php' ); // A Payment gateway
|
||||
include_once( 'includes/abstracts/abstract-wc-integration.php' ); // An integration with a service
|
||||
include_once( 'includes/class-wc-product-factory.php' ); // Product factory
|
||||
include_once( 'includes/class-wc-payment-tokens.php' ); // Payment tokens controller
|
||||
include_once( 'includes/gateways/class-wc-payment-gateway-cc.php' ); // CC Payment Gateway
|
||||
include_once( 'includes/gateways/class-wc-payment-gateway-echeck.php' ); // eCheck Payment Gateway
|
||||
include_once( 'includes/class-wc-countries.php' ); // Defines countries and states
|
||||
include_once( 'includes/class-wc-integrations.php' ); // Loads integrations
|
||||
include_once( 'includes/class-wc-cache-helper.php' ); // Cache Helper
|
||||
include_once( 'includes/class-wc-https.php' ); // https Helper
|
||||
include_once( WC_ABSPATH . 'includes/class-wc-query.php' ); // The main query class
|
||||
include_once( WC_ABSPATH . 'includes/class-wc-api.php' ); // API Class
|
||||
include_once( WC_ABSPATH . 'includes/class-wc-auth.php' ); // Auth Class
|
||||
include_once( WC_ABSPATH . 'includes/class-wc-post-types.php' ); // Registers post types
|
||||
include_once( WC_ABSPATH . 'includes/abstracts/abstract-wc-data.php' ); // WC_Data for CRUD
|
||||
include_once( WC_ABSPATH . 'includes/abstracts/abstract-wc-payment-token.php' ); // Payment Tokens
|
||||
include_once( WC_ABSPATH . 'includes/abstracts/abstract-wc-product.php' ); // Products
|
||||
include_once( WC_ABSPATH . 'includes/abstracts/abstract-wc-order.php' ); // Orders
|
||||
include_once( WC_ABSPATH . 'includes/abstracts/abstract-wc-settings-api.php' ); // Settings API (for gateways, shipping, and integrations)
|
||||
include_once( WC_ABSPATH . 'includes/abstracts/abstract-wc-shipping-method.php' ); // A Shipping method
|
||||
include_once( WC_ABSPATH . 'includes/abstracts/abstract-wc-payment-gateway.php' ); // A Payment gateway
|
||||
include_once( WC_ABSPATH . 'includes/abstracts/abstract-wc-integration.php' ); // An integration with a service
|
||||
include_once( WC_ABSPATH . 'includes/class-wc-product-factory.php' ); // Product factory
|
||||
include_once( WC_ABSPATH . 'includes/class-wc-payment-tokens.php' ); // Payment tokens controller
|
||||
include_once( WC_ABSPATH . 'includes/gateways/class-wc-payment-gateway-cc.php' ); // CC Payment Gateway
|
||||
include_once( WC_ABSPATH . 'includes/gateways/class-wc-payment-gateway-echeck.php' ); // eCheck Payment Gateway
|
||||
include_once( WC_ABSPATH . 'includes/class-wc-countries.php' ); // Defines countries and states
|
||||
include_once( WC_ABSPATH . 'includes/class-wc-integrations.php' ); // Loads integrations
|
||||
include_once( WC_ABSPATH . 'includes/class-wc-cache-helper.php' ); // Cache Helper
|
||||
include_once( WC_ABSPATH . 'includes/class-wc-https.php' ); // https Helper
|
||||
|
||||
if ( defined( 'WP_CLI' ) && WP_CLI ) {
|
||||
include_once( 'includes/class-wc-cli.php' );
|
||||
include_once( WC_ABSPATH . 'includes/class-wc-cli.php' );
|
||||
}
|
||||
|
||||
$this->query = new WC_Query();
|
||||
|
@ -285,25 +286,25 @@ final class WooCommerce {
|
|||
* Include required frontend files.
|
||||
*/
|
||||
public function frontend_includes() {
|
||||
include_once( 'includes/wc-cart-functions.php' );
|
||||
include_once( 'includes/wc-notice-functions.php' );
|
||||
include_once( 'includes/wc-template-hooks.php' );
|
||||
include_once( 'includes/class-wc-template-loader.php' ); // Template Loader
|
||||
include_once( 'includes/class-wc-frontend-scripts.php' ); // Frontend Scripts
|
||||
include_once( 'includes/class-wc-form-handler.php' ); // Form Handlers
|
||||
include_once( 'includes/class-wc-cart.php' ); // The main cart class
|
||||
include_once( 'includes/class-wc-tax.php' ); // Tax class
|
||||
include_once( 'includes/class-wc-shipping-zones.php' ); // Shipping Zones class
|
||||
include_once( 'includes/class-wc-customer.php' ); // Customer class
|
||||
include_once( 'includes/class-wc-shortcodes.php' ); // Shortcodes class
|
||||
include_once( 'includes/class-wc-embed.php' ); // Embeds
|
||||
include_once( WC_ABSPATH . 'includes/wc-cart-functions.php' );
|
||||
include_once( WC_ABSPATH . 'includes/wc-notice-functions.php' );
|
||||
include_once( WC_ABSPATH . 'includes/wc-template-hooks.php' );
|
||||
include_once( WC_ABSPATH . 'includes/class-wc-template-loader.php' ); // Template Loader
|
||||
include_once( WC_ABSPATH . 'includes/class-wc-frontend-scripts.php' ); // Frontend Scripts
|
||||
include_once( WC_ABSPATH . 'includes/class-wc-form-handler.php' ); // Form Handlers
|
||||
include_once( WC_ABSPATH . 'includes/class-wc-cart.php' ); // The main cart class
|
||||
include_once( WC_ABSPATH . 'includes/class-wc-tax.php' ); // Tax class
|
||||
include_once( WC_ABSPATH . 'includes/class-wc-shipping-zones.php' ); // Shipping Zones class
|
||||
include_once( WC_ABSPATH . 'includes/class-wc-customer.php' ); // Customer class
|
||||
include_once( WC_ABSPATH . 'includes/class-wc-shortcodes.php' ); // Shortcodes class
|
||||
include_once( WC_ABSPATH . 'includes/class-wc-embed.php' ); // Embeds
|
||||
}
|
||||
|
||||
/**
|
||||
* Function used to Init WooCommerce Template Functions - This makes them pluggable by plugins and themes.
|
||||
*/
|
||||
public function include_template_functions() {
|
||||
include_once( 'includes/wc-template-functions.php' );
|
||||
include_once( WC_ABSPATH . 'includes/wc-template-functions.php' );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue