protected function get_available_plans() {
$plans = new WP_Query( array(
'post_type' => APPTHEMES_PRICE_PLAN_PTYPE,
'orderby' => 'menu_order',
'order' => 'ASC',
'nopaging' => 1,
) );
$plans_data = array();
foreach( $plans->posts as $key => $plan){
$plans_data[ $key ] = va_get_plan_options( $plan->ID );
$plans_data[ $key ]['post_data'] = $plan;
}
return $plans_data;
}
protected function get_available_plans() {
$plans = new WP_Query( array(
'post_type' => APPTHEMES_PRICE_PLAN_PTYPE,
'nopaging' => 1,
) );
$plans_data = array();
foreach( $plans->posts as $key => $plan){
$plans_data[ $key ] = va_get_plan_options( $plan->ID );
$plans_data[ $key ]['post_data'] = $plan;
}
return $plans_data;
}
There are currently 1 users browsing this thread. (0 members and 1 guests)