This file contains 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 | |
if ( !function_exists('your_pagination')) : | |
function your_pagination($custom_query) { | |
if ( !$current_page = get_query_var( 'paged' ) ) $current_page = 1; | |
$permalinks = get_option( 'permalink_structure' ); | |
if( is_front_page() ) { | |
$format = empty( $permalinks ) ? '?paged=%#%' : 'page/%#%/'; | |
} else { |
This file contains 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
/** | |
* Add tax exempt fields to checkout | |
**/ | |
add_action('woocommerce_before_order_notes', 'taxexempt_before_order_notes'); | |
function taxexempt_before_order_notes( $checkout ) { | |
woocommerce_form_field( 'tax_exempt_checkbox', array( | |
'type' => 'checkbox', | |
'class' => array('tiri taxexempt'),array( 'form-row-wide', 'address-field' ), |