Skip to content

Instantly share code, notes, and snippets.

@Miq3l
Miq3l / functions.php
Last active June 22, 2021 14:15 — forked from SiR-DanieL/functions.php
Adding VAT to WooCommerce
/***************************** FRONTEND ****************************************/
/**************************
Filter to add a VAT field to:
- My Account - Edit Form -- Billing fields
- Checkout - Edit Form - Billing Fields
This function is also reordering the form fields
@Miq3l
Miq3l / custom-my-account-endpoint.php
Created June 29, 2016 08:39 — forked from claudiosanches/custom-my-account-endpoint.php
Example of custom My Account endpoint.
<?php
class My_Custom_My_Account_Endpoint {
/**
* Custom endpoint name.
*
* @var string
*/
public static $endpoint = 'my-custom-endpoint';
@Miq3l
Miq3l / my-account.php
Last active September 2, 2015 17:17 — forked from mclanecreative/my-account.php
Adds Tabs to WooCommerce "My Account" page. Instructions: add my-account.php to your /woocommerce/myaccount/ folder. Next, add the CSS to your child theme's style.css file.
<?php
/**
* My Account page
*
* @author WooThemes
* @edited by McLane Creative
* @package WooCommerce/Templates
* @version 3.0.0
*/