$plan = _va_get_last_plan_info( $listing->ID );
if ( false !== $plan ) {
$plan_data = va_get_plan_options( $plan['ID'] );
$included_categories = va_get_plan_included_categories( $plan['ID'] );
$categories_locked = current_user_can('administrator') ? false : true;
} else {
$included_categories = 0; //<-- change this value
$categories_locked = false;
}
function va_get_plan_included_categories( $plan_id ) {
global $va_options;
$plan = va_get_plan_options( $plan_id );
if ( !isset( $plan['included_categories'] ) ) {
return 0; //<-- change this value
} else {
return $plan['included_categories'];
}
}
There are currently 1 users browsing this thread. (0 members and 1 guests)