Shop URL 404 on change

[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();

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer