Set/update listing plan to...
Hi,
I am doing some customization and i found this function
PHP Code:
function va_prune_expired_listings() {
to prune listings. Now I am trying to keep expired listings published and UPDATE the plan to free/basic plan. It seems that all this i can do within the above mentioned function. I am just not sure how to set/update as listing's plan. Is there a particular function for this?
So, in short: how do i update a listings plan with PHP coding/within a function?
Thanks.