Tax Helper Functions
The helper you can use to create, delete, get and update Tax details.
function add_tax($tax) {.....}
Supported hooks
// The filter callback function is based on the filter.
add_filter( ‘before_add_tax’, ‘before_add_tax_callback_fun’, 10, 1 );
function before_add_tax_callback_fun($tax) {
// code
}// The filter callback function is based on the filter.
add_filter( ‘should_add_tax’, ‘should_add_tax_callback_fun’, 10, 1 );
function should_add_tax_callback_fun($tax) {
// code
}
Param
Type
Required
Default
Description
function get_tax($tax_type_id) {....}
Supported hooks
Param
Type
Required
Default
Description
function get_taxes($filter) {.....}
Param
Type
Required
Default
Description
function update_tax($tax, $tax_type_id) {....}
Param
Type
Required
Default
Description
function delete_tax($tax_type_id) {.....}
Param
Type
Required
Default
Description
Last updated