Created
February 12, 2021 13:09
-
-
Save eduwass/6aeed46ae8171048375bf849d8f18ff3 to your computer and use it in GitHub Desktop.
Xero for WooCommerce Available Filters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
54 results - 15 files | |
web/app/plugins/woocommerce-xero/includes/class-wc-xr-address.php: | |
20 public function get_type() { | |
21: return apply_filters( 'woocommerce_xero_address_type', $this->type, $this ); | |
22 } | |
34 public function get_line_1() { | |
35: return apply_filters( 'woocommerce_xero_address_line_1', $this->line_1, $this ); | |
36 } | |
48 public function get_line_2() { | |
49: return apply_filters( 'woocommerce_xero_address_line_2', $this->line_2, $this ); | |
50 } | |
62 public function get_city() { | |
63: return apply_filters( 'woocommerce_xero_address_city', $this->city, $this ); | |
64 } | |
76 public function get_region() { | |
77: return apply_filters( 'woocommerce_xero_address_region', $this->region, $this ); | |
78 } | |
90 public function get_postal_code() { | |
91: return apply_filters( 'woocommerce_xero_address_postal_code', $this->postal_code, $this ); | |
92 } | |
104 public function get_country() { | |
105: return apply_filters( 'woocommerce_xero_address_country', $this->country, $this ); | |
106 } | |
web/app/plugins/woocommerce-xero/includes/class-wc-xr-contact-manager.php: | |
114 // Set Invoice name | |
115: if ( apply_filters('woocommerce_xero_use_company_name', true ) && strlen( $billing_company ) > 0 ) { | |
116 $invoice_name = $billing_company; | |
150 // Set VAT/Tax Number. | |
151: $vat_number_meta_key = apply_filters( 'woocommerce_xero_vat_number_meta_key', '_vat_number' ); | |
152 if ( $order->meta_exists( $vat_number_meta_key ) ) { | |
web/app/plugins/woocommerce-xero/includes/class-wc-xr-contact.php: | |
21 public function get_id() { | |
22: return apply_filters( 'woocommerce_xero_contact_id', $this->id, $this ); | |
23 } | |
35 public function get_name() { | |
36: return apply_filters( 'woocommerce_xero_contact_name', $this->name, $this ); | |
37 } | |
49 public function get_first_name() { | |
50: return apply_filters( 'woocommerce_xero_contact_first_name', $this->first_name, $this ); | |
51 } | |
63 public function get_last_name() { | |
64: return apply_filters( 'woocommerce_xero_contact_last_name', $this->last_name, $this ); | |
65 } | |
77 public function get_email_address() { | |
78: return apply_filters( 'woocommerce_xero_contact_email_address', $this->email_address, $this ); | |
79 } | |
91 public function get_addresses() { | |
92: return apply_filters( 'woocommerce_xero_contact_addresses', $this->addresses, $this ); | |
93 } | |
105 public function get_phones() { | |
106: return apply_filters( 'woocommerce_xero_contact_phones', $this->phones, $this ); | |
107 } | |
132 public function get_tax_number() { | |
133: return apply_filters( 'woocommerce_xero_contact_tax_number', $this->tax_number, $this ); | |
134 } | |
web/app/plugins/woocommerce-xero/includes/class-wc-xr-invoice-manager.php: | |
185 | |
186: if ( apply_filters( 'woocommerce_xero_disable_auto_void_invoices', false ) ) { | |
187 return false; | |
web/app/plugins/woocommerce-xero/includes/class-wc-xr-invoice.php: | |
94 public function get_type() { | |
95: return apply_filters( 'woocommerce_xero_invoice_type', $this->type, $this ); | |
96 } | |
108 public function get_contact() { | |
109: return apply_filters( 'woocommerce_xero_invoice_contact', $this->contact, $this ); | |
110 } | |
122 public function get_date() { | |
123: return apply_filters( 'woocommerce_xero_invoice_date', $this->date, $this ); | |
124 } | |
136 public function get_due_date() { | |
137: return apply_filters( 'woocommerce_xero_invoice_due_date', $this->due_date, $this ); | |
138 } | |
163 | |
164: return apply_filters( 'woocommerce_xero_invoice_invoice_number', $invoice_number, $this ); | |
165 } | |
177 public function get_line_items() { | |
178: return apply_filters( 'woocommerce_xero_invoice_line_items', $this->line_items, $this ); | |
179 } | |
191 public function get_currency_code() { | |
192: return apply_filters( 'woocommerce_xero_invoice_currency_code', $this->currency_code, $this ); | |
193 } | |
205 public function get_total_tax() { | |
206: return apply_filters( 'woocommerce_xero_invoice_total_tax', $this->total_tax, $this ); | |
207 } | |
219 public function get_total() { | |
220: return apply_filters( 'woocommerce_xero_invoice_total', $this->total, $this ); | |
221 } | |
474 */ | |
475: return apply_filters( 'woocommerce_xero_invoice_to_xml', $xml, $this ); | |
476 } | |
web/app/plugins/woocommerce-xero/includes/class-wc-xr-line-item-manager.php: | |
123 // Add Line Item to array. | |
124: $line_items[] = apply_filters( 'woocommerce_xero_line_item_product', $line_item, $item, $order ); | |
125 } | |
170 | |
171: if ( true == apply_filters( 'woocommerce_apply_base_tax_for_local_pickup', true ) && sizeof( array_intersect( $shipping_methods, apply_filters( 'woocommerce_local_pickup_methods', array( 'local_pickup' ) ) ) ) > 0 ) { | |
172 $tax_based_on = 'base'; | |
web/app/plugins/woocommerce-xero/includes/class-wc-xr-line-item.php: | |
76 public function get_description() { | |
77: return apply_filters( 'woocommerce_xero_line_item_description', $this->description, $this ); | |
78 } | |
90 public function get_account_code() { | |
91: return apply_filters( 'woocommerce_xero_line_item_account_code', $this->account_code, $this ); | |
92 } | |
104 public function get_item_code() { | |
105: return apply_filters( 'woocommerce_xero_line_item_item_code', $this->item_code, $this ); | |
106 } | |
118 public function get_unit_amount() { | |
119: return apply_filters( 'woocommerce_xero_line_item_unit_amount', $this->unit_amount, $this ); | |
120 } | |
132 public function get_quantity() { | |
133: return apply_filters( 'woocommerce_xero_line_item_quantity', $this->quantity, $this ); | |
134 } | |
146 public function get_line_amount() { | |
147: return apply_filters( 'woocommerce_xero_line_item_line_amount', $this->line_amount, $this ); | |
148 } | |
160 public function get_tax_amount() { | |
161: return apply_filters( 'woocommerce_xero_line_item_tax_amount', $this->tax_amount, $this ); | |
162 } | |
174 public function get_tax_rate() { | |
175: return apply_filters( 'woocommerce_xero_line_item_tax_rate', $this->tax_rate, $this ); | |
176 } | |
195 public function get_discount_rate() { | |
196: return apply_filters( 'woocommerce_xero_line_item_discount_rate', $this->discount_rate, $this ); | |
197 } | |
313 | |
314: if ( apply_filters( 'woocommerce_xero_create_unique_tax_label', true ) ) { | |
315 // Add the rate to the label to make it unique | |
web/app/plugins/woocommerce-xero/includes/class-wc-xr-oauth20-logger.php: | |
31 public function is_enabled() { | |
32: return apply_filters( 'wc_xero_oauth20_logging', false ); | |
33 } | |
web/app/plugins/woocommerce-xero/includes/class-wc-xr-payment-manager.php: | |
176 // Set the payment date. | |
177: $payment->set_date( apply_filters( 'woocommerce_xero_order_payment_date', $order_ymd, $order ) ); | |
178 | |
web/app/plugins/woocommerce-xero/includes/class-wc-xr-payment.php: | |
19 public function get_invoice_id() { | |
20: return apply_filters( 'woocommerce_xero_payment_invoice_id', $this->invoice_id, $this ); | |
21 } | |
33 public function get_code() { | |
34: return apply_filters( 'woocommerce_xero_payment_code', $this->code, $this ); | |
35 } | |
47 public function get_date() { | |
48: return apply_filters( 'woocommerce_xero_payment_date', $this->date, $this ); | |
49 } | |
61 public function get_currency_rate() { | |
62: return apply_filters( 'woocommerce_xero_payment_currency_rate', $this->currency_rate, $this ); | |
63 } | |
75 public function get_amount() { | |
76: return apply_filters( 'woocommerce_xero_payment_amount', $this->amount, $this ); | |
77 } | |
web/app/plugins/woocommerce-xero/includes/class-wc-xr-phone.php: | |
24 public function get_type() { | |
25: return apply_filters( 'woocommerce_xero_phone_type', $this->type, $this ); | |
26 } | |
38 public function get_number() { | |
39: return apply_filters( 'woocommerce_xero_phone_number', $this->number, $this ); | |
40 } | |
web/app/plugins/woocommerce-xero/includes/class-wc-xr-privacy.php: | |
231 | |
232: if ( $subscription->has_status( apply_filters( 'wc_xero_privacy_eraser_subs_statuses', array( 'on-hold', 'active' ) ) ) ) { | |
233 return array( false, true, array( sprintf( __( 'Order ID %d contains an active Subscription' ), $order->get_id() ) ) ); | |
web/app/plugins/woocommerce-xero/includes/requests/class-wc-xr-request-invoice.php: | |
9 public function __construct( WC_XR_Settings $settings, WC_XR_Invoice $invoice ) { | |
10: $settings = apply_filters( 'woocommerce_xero_invoice_request_settings', $settings, $invoice ); | |
11 $invoice->settings = $settings; | |
web/app/plugins/woocommerce-xero/includes/requests/class-wc-xr-request-payment.php: | |
9 public function __construct( WC_XR_Settings $settings, WC_XR_Payment $payment ) { | |
10: $settings = apply_filters( 'woocommerce_xero_payment_request_settings', $settings, $payment ); | |
11 parent::__construct( $settings ); | |
web/app/plugins/woocommerce-xero/includes/requests/class-wc-xr-request-void.php: | |
9 public function __construct( WC_XR_Settings $settings, WC_XR_Invoice $invoice, $xml ) { | |
10: $settings = apply_filters( 'woocommerce_xero_invoice_request_settings', $settings, $invoice ); | |
11 $invoice->settings = $settings; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment