Property | Type | Description | |
---|---|---|---|
$api_client | WC_Connect_API_Client | ||
$help_view | WC_Connect_Help_View | ||
$logger | WC_Connect_Logger | ||
$payment_methods_store | WC_Connect_Payment_Methods_Store | ||
$rest_account_settings_controller | WC_REST_Connect_Account_Settings_Controller | ||
$rest_address_normalization_controller | WC_REST_Connect_Address_Normalization_Controller | ||
$rest_packages_controller | WC_REST_Connect_Packages_Controller | ||
$rest_self_help_controller | WC_REST_Connect_Self_Help_Controller | ||
$rest_services_controller | WC_REST_Connect_Services_Controller | ||
$rest_shipping_label_controller | WC_REST_Connect_Shipping_Label_Controller | ||
$rest_shipping_label_refund_controller | WC_REST_Connect_Shipping_Label_Refund_Controller | ||
$rest_shipping_label_status_controller | WC_REST_Connect_Shipping_Label_Status_Controller | ||
$rest_shipping_labels_preview_controller | WC_REST_Connect_Shipping_Labels_Preview_Controller | ||
$rest_shipping_labels_print_controller | WC_REST_Connect_Shipping_Labels_Print_Controller | ||
$rest_shipping_rates_controller | WC_REST_Connect_Shipping_Rates_Controller | ||
$service_object_cache | |||
$service_schemas_store | WC_Connect_Service_Schemas_Store | ||
$service_schemas_validator | WC_Connect_Service_Schemas_Validator | ||
$service_settings_store | WC_Connect_Service_Settings_Store | ||
$services | |||
$settings_page | WC_Connect_Settings_Page |
Method | Description | |
---|---|---|
__construct ( ) | ||
add_meta_boxes ( ) | ||
add_shipping_phone_to_checkout ( $fields ) | ||
add_shipping_phone_to_order_fields ( $fields ) | ||
admin_banner_styles ( ) | ||
admin_enqueue_scripts ( ) | Registers the React UI bundle | |
attach_hooks ( ) | Hook plugin classes into WP/WC core. | |
check_tos ( ) | ||
dismiss_tos_notice ( ) | ||
get_active_services ( ) | ||
get_active_shipping_services ( ) | ||
get_api_client ( ) | ||
get_help_view ( ) | ||
get_logger ( ) | ||
get_payment_methods_store ( ) | ||
get_rest_account_settings_controller ( ) | ||
get_rest_self_help_controller ( ) | ||
get_rest_services_controller ( ) | ||
get_rest_shipping_label_controller ( ) | ||
get_rest_shipping_label_refund_controller ( ) | ||
get_rest_shipping_label_status_controller ( ) | ||
get_rest_shipping_labels_preview_controller ( ) | ||
get_rest_shipping_labels_print_controller ( ) | ||
get_service_schemas_store ( ) | ||
get_service_schemas_validator ( ) | ||
get_service_settings_store ( ) | ||
get_settings_pages ( ) | ||
get_shipping_phone_from_order ( $fields, $address_type, $order ) | ||
get_tracks ( ) | ||
hide_wc_connect_order_meta_data ( $protected, $meta_key, $meta_type ) | ||
hide_wc_connect_package_meta_data ( $hidden_keys ) | ||
init ( ) | Bootstrap our plugin and hook into WP/WC core. | |
init_service ( WC_Connect_Shipping_Method $method, integer | string $id_or_instance_id ) | Inject API Client and Logger into WC Connect shipping method instances. | |
is_wc_connect_shipping_service ( $service_id ) | ||
load_admin_dependencies ( ) | Load admin-only plugin dependencies. | |
load_dependencies ( ) | Load all plugin dependencies. | |
load_textdomain ( ) | Load our textdomain | |
load_tracks_for_activation_hooks ( ) | ||
localize_and_enqueue_service_script ( $id, $instance = false ) | This function is added to the wc_connect_service_admin_options action by this class (see attach_hooks) and then that action is fired by WC_Connect_Shipping_Method::admin_options to get the service instance form layout and settings bundled inside wcConnectData as the form container is emitted into the body's HTML | |
plugin_activation ( ) | ||
plugin_deactivation ( ) | ||
rest_api_init ( ) | Hook the REST API Note that we cannot load our controller until this time, because prior to rest_api_init firing, WP_REST_Controller is not yet defined | |
schedule_service_schemas_fetch ( ) | Hook fetching the available services from the connect server | |
set_api_client ( WC_Connect_API_Client $api_client ) | ||
set_help_view ( WC_Connect_Help_View $help_view ) | ||
set_logger ( WC_Connect_Logger $logger ) | ||
set_payment_methods_store ( WC_Connect_Payment_Methods_Store $payment_methods_store ) | ||
set_rest_account_settings_controller ( WC_REST_Connect_Account_Settings_Controller $rest_account_settings_controller ) | ||
set_rest_address_normalization_controller ( WC_REST_Connect_Address_Normalization_Controller $rest_address_normalization_controller ) | ||
set_rest_packages_controller ( WC_REST_Connect_Packages_Controller $rest_packages_controller ) | ||
set_rest_self_help_controller ( WC_REST_Connect_Self_Help_Controller $rest_self_help_controller ) | ||
set_rest_services_controller ( WC_REST_Connect_Services_Controller $rest_services_controller ) | ||
set_rest_shipping_label_controller ( WC_REST_Connect_Shipping_Label_Controller $rest_shipping_label_controller ) | ||
set_rest_shipping_label_refund_controller ( WC_REST_Connect_Shipping_Label_Refund_Controller $rest_shipping_label_refund_controller ) | ||
set_rest_shipping_label_status_controller ( WC_REST_Connect_Shipping_Label_Status_Controller $rest_shipping_label_status_controller ) | ||
set_rest_shipping_labels_preview_controller ( WC_REST_Connect_Shipping_Labels_Preview_Controller $rest_shipping_labels_preview_controller ) | ||
set_rest_shipping_labels_print_controller ( WC_REST_Connect_Shipping_Labels_Print_Controller $rest_shipping_labels_print_controller ) | ||
set_rest_shipping_rates_controller ( WC_REST_Connect_Shipping_Rates_Controller $rest_shipping_rates_controller ) | ||
set_service_schemas_store ( WC_Connect_Service_Schemas_Store $schemas_store ) | ||
set_service_schemas_validator ( WC_Connect_Service_Schemas_Validator $validator ) | ||
set_service_settings_store ( WC_Connect_Service_Settings_Store $settings_store ) | ||
set_settings_pages ( WC_Connect_Settings_Pages $settings_pages ) | ||
set_tracks ( WC_Connect_Tracks $tracks ) | ||
shipping_zone_method_added ( $instance_id, $service_id, $zone_id ) | ||
shipping_zone_method_deleted ( $instance_id, $service_id, $zone_id ) | ||
shipping_zone_method_status_toggled ( $instance_id, $service_id, $zone_id, $enabled ) | ||
show_tos_notice ( ) | ||
woocommerce_load_shipping_methods ( ) | Registers shipping methods for use in things like the Add Shipping Method dialog on the Shipping Zones view | |
woocommerce_payment_gateways ( $payment_gateways ) | ||
woocommerce_shipping_methods ( $shipping_methods ) : mixed | Filters in shipping methods for things like WC_Shipping::get_shipping_method_class_names |
Method | Description | |
---|---|---|
get_service_object_by_id ( string $class_name, string $service_id ) : mixed | Returns a reference to a service (e.g. WC_Connect_Shipping_Method) of a particular id so we can avoid instantiating them multiple times |
public add_shipping_phone_to_order_fields ( $fields ) |
public admin_enqueue_scripts ( ) |
public get_rest_account_settings_controller ( ) |
public get_rest_shipping_label_refund_controller ( ) |
public get_rest_shipping_label_status_controller ( ) |
public get_rest_shipping_labels_preview_controller ( ) |
public get_rest_shipping_labels_print_controller ( ) |
public get_shipping_phone_from_order ( $fields, $address_type, $order ) |
public hide_wc_connect_order_meta_data ( $protected, $meta_key, $meta_type ) |
public hide_wc_connect_package_meta_data ( $hidden_keys ) |
public init_service ( WC_Connect_Shipping_Method $method, integer | string $id_or_instance_id ) | ||
$method | WC_Connect_Shipping_Method | |
$id_or_instance_id | integer | string |
public is_wc_connect_shipping_service ( $service_id ) |
public load_admin_dependencies ( ) |
static public load_tracks_for_activation_hooks ( ) |
public localize_and_enqueue_service_script ( $id, $instance = false ) |
public rest_api_init ( ) |
public schedule_service_schemas_fetch ( ) |
public set_api_client ( WC_Connect_API_Client $api_client ) | ||
$api_client | WC_Connect_API_Client |
public set_help_view ( WC_Connect_Help_View $help_view ) | ||
$help_view | WC_Connect_Help_View |
public set_logger ( WC_Connect_Logger $logger ) | ||
$logger | WC_Connect_Logger |
public set_payment_methods_store ( WC_Connect_Payment_Methods_Store $payment_methods_store ) | ||
$payment_methods_store | WC_Connect_Payment_Methods_Store |
public set_rest_account_settings_controller ( WC_REST_Connect_Account_Settings_Controller $rest_account_settings_controller ) | ||
$rest_account_settings_controller | WC_REST_Connect_Account_Settings_Controller |
public set_rest_address_normalization_controller ( WC_REST_Connect_Address_Normalization_Controller $rest_address_normalization_controller ) | ||
$rest_address_normalization_controller | WC_REST_Connect_Address_Normalization_Controller |
public set_rest_packages_controller ( WC_REST_Connect_Packages_Controller $rest_packages_controller ) | ||
$rest_packages_controller | WC_REST_Connect_Packages_Controller |
public set_rest_self_help_controller ( WC_REST_Connect_Self_Help_Controller $rest_self_help_controller ) | ||
$rest_self_help_controller | WC_REST_Connect_Self_Help_Controller |
public set_rest_services_controller ( WC_REST_Connect_Services_Controller $rest_services_controller ) | ||
$rest_services_controller | WC_REST_Connect_Services_Controller |
public set_rest_shipping_label_controller ( WC_REST_Connect_Shipping_Label_Controller $rest_shipping_label_controller ) | ||
$rest_shipping_label_controller | WC_REST_Connect_Shipping_Label_Controller |
public set_rest_shipping_label_refund_controller ( WC_REST_Connect_Shipping_Label_Refund_Controller $rest_shipping_label_refund_controller ) | ||
$rest_shipping_label_refund_controller | WC_REST_Connect_Shipping_Label_Refund_Controller |
public set_rest_shipping_label_status_controller ( WC_REST_Connect_Shipping_Label_Status_Controller $rest_shipping_label_status_controller ) | ||
$rest_shipping_label_status_controller | WC_REST_Connect_Shipping_Label_Status_Controller |
public set_rest_shipping_labels_preview_controller ( WC_REST_Connect_Shipping_Labels_Preview_Controller $rest_shipping_labels_preview_controller ) | ||
$rest_shipping_labels_preview_controller | WC_REST_Connect_Shipping_Labels_Preview_Controller |
public set_rest_shipping_labels_print_controller ( WC_REST_Connect_Shipping_Labels_Print_Controller $rest_shipping_labels_print_controller ) | ||
$rest_shipping_labels_print_controller | WC_REST_Connect_Shipping_Labels_Print_Controller |
public set_rest_shipping_rates_controller ( WC_REST_Connect_Shipping_Rates_Controller $rest_shipping_rates_controller ) | ||
$rest_shipping_rates_controller | WC_REST_Connect_Shipping_Rates_Controller |
public set_service_schemas_store ( WC_Connect_Service_Schemas_Store $schemas_store ) | ||
$schemas_store | WC_Connect_Service_Schemas_Store |
public set_service_schemas_validator ( WC_Connect_Service_Schemas_Validator $validator ) | ||
$validator | WC_Connect_Service_Schemas_Validator |
public set_service_settings_store ( WC_Connect_Service_Settings_Store $settings_store ) | ||
$settings_store | WC_Connect_Service_Settings_Store |
public set_settings_pages ( WC_Connect_Settings_Pages $settings_pages ) | ||
$settings_pages | WC_Connect_Settings_Pages |
public set_tracks ( WC_Connect_Tracks $tracks ) | ||
$tracks | WC_Connect_Tracks |
public shipping_zone_method_added ( $instance_id, $service_id, $zone_id ) |
public shipping_zone_method_deleted ( $instance_id, $service_id, $zone_id ) |
public shipping_zone_method_status_toggled ( $instance_id, $service_id, $zone_id, $enabled ) |
public woocommerce_load_shipping_methods ( ) |
public woocommerce_payment_gateways ( $payment_gateways ) |
public woocommerce_shipping_methods ( $shipping_methods ) : mixed | ||
$shipping_methods | ||
return | mixed |
protected WC_Connect_API_Client $api_client | ||
return | WC_Connect_API_Client |
protected WC_Connect_Payment_Methods_Store $payment_methods_store | ||
return | WC_Connect_Payment_Methods_Store |
protected WC_REST_Connect_Account_Settings_Controller $rest_account_settings_controller | ||
return | WC_REST_Connect_Account_Settings_Controller |
protected WC_REST_Connect_Address_Normalization_Controller $rest_address_normalization_controller | ||
return | WC_REST_Connect_Address_Normalization_Controller |
protected WC_REST_Connect_Packages_Controller $rest_packages_controller | ||
return | WC_REST_Connect_Packages_Controller |
protected WC_REST_Connect_Self_Help_Controller $rest_self_help_controller | ||
return | WC_REST_Connect_Self_Help_Controller |
protected WC_REST_Connect_Services_Controller $rest_services_controller | ||
return | WC_REST_Connect_Services_Controller |
protected WC_REST_Connect_Shipping_Label_Controller $rest_shipping_label_controller | ||
return | WC_REST_Connect_Shipping_Label_Controller |
protected WC_REST_Connect_Shipping_Label_Refund_Controller $rest_shipping_label_refund_controller | ||
return | WC_REST_Connect_Shipping_Label_Refund_Controller |
protected WC_REST_Connect_Shipping_Label_Status_Controller $rest_shipping_label_status_controller | ||
return | WC_REST_Connect_Shipping_Label_Status_Controller |
protected WC_REST_Connect_Shipping_Labels_Preview_Controller $rest_shipping_labels_preview_controller | ||
return | WC_REST_Connect_Shipping_Labels_Preview_Controller |
protected WC_REST_Connect_Shipping_Labels_Print_Controller $rest_shipping_labels_print_controller | ||
return | WC_REST_Connect_Shipping_Labels_Print_Controller |
protected WC_REST_Connect_Shipping_Rates_Controller $rest_shipping_rates_controller | ||
return | WC_REST_Connect_Shipping_Rates_Controller |
protected WC_Connect_Service_Schemas_Store $service_schemas_store | ||
return | WC_Connect_Service_Schemas_Store |
protected WC_Connect_Service_Schemas_Validator $service_schemas_validator | ||
return | WC_Connect_Service_Schemas_Validator |
protected WC_Connect_Service_Settings_Store $service_settings_store | ||
return | WC_Connect_Service_Settings_Store |