[ad_1]
Saving vendor shop.
I created a custom user profile, where the user can change his info, even the shop name and shop url.
I saved the shop name like this
update_user_meta($user_id, ‘pv_shop_name’, sanitize_title($params[‘company’]));
Well the meta is updating, but the shop url is not working. If I manualy go into the wordpress user dashboard and I just click save user. The url will work.
Is there a way to save_shop_settings() like function?
Tryed also this
$dashboard = new WCV_Vendor_Admin_Dashboard();
$dashboard->save_shop_settings();
