Rates Helper Functions
The helper you can use to create, delete, get and update rates.
function add_rates($rates) {.....}
Supported hooks
// The filter callback function is based on the filter.
add_filter( ‘before_add_rates’, ‘before_add_rates_callback_fun’, 10, 1 );
function before_add_rates_callback_fun($rates) {
// code
}// The filter callback function is based on the filter.
add_filter( ‘should_add_rates’, ‘should_add_rates_callback_fun’, 10, 1 );
function should_add_rates_callback_fun($rates) {
// code
}
Param
Type
Required
Default
Description
function get_rate($rate_id) {....}
Supported hooks
Param
Type
Required
Default
Description
function get_rates($filter) {.....}
Param
Type
Required
Default
Description
function update_rates($rates , $rate_id) {....}
Param
Type
Required
Default
Description
function delete_rate($rate_id) {.....}
Param
Type
Required
Default
Description
Last updated