type: select - I edit the options and created the one I want to be default.
the default selection should be the one with ID=269
I am using this code bellow without success, basically it is the same snippet I used for default vendors attribute, I just changed the vendor for listing, but didnt work.
Should I change something else? Is there a mistake? Thanks
add_action(
'hivepress/v1/models/listing/create',
function ($listing_id, $listing){
$listing->set_compras_protegidas(269)->save_compras_protegidas();
},
1000,
2
);```