Rate Plan Helper Functions
The helper you can use to create, delete, get and update Rate Plan details.
function get_rate_plan($rate_plan_id) {....}
add_filter('before_get_rate_plan', 'before_get_rate_plan_callback_fn', 10, 1);
function before_get_rate_plan_callback_fn ($rate_plan_id) {
// This filter would be executed before retrieving rate_planfrom database in get_rate_plan helper.
}add_filter('should_get_rate_plan', 'should_get_rate_plan_callback_fn', 10, 1);
function should_get_rate_plan_callback_fn ($rate_plan_id) {
// This filter would be executed before retrieving rate_plan details from database in get_rate_plan helper.
}add_filter('pre.get.rate_plan', 'pre_get_rate_plan_callback_fn', 10, 1);
function pre_get_rate_plan_callback_fn ($rate_plan_id) {
// This filter would be executed before retrieving rate_plan details from database in get_rate_plan helper.
}Param
Type
Required
Default
Description
function add_rate_plan($rate_plan) {.....}
Supported hooks
Param
Type
Required
Default
Description
function get_rate_plans($filter) {.....}
Param
Type
Required
Default
Description
function update_rate_plan($rate_plan, $rate_plan_id) {....}
Param
Type
Required
Default
Description
function delete_rate_plan($rate_plan_id) {.....}
Param
Type
Required
Default
Description
Last updated