In the file
vendor_registration.php
Copy
(located at
wp-content/plugins/dc-woocommerce-multi-vendor/templates/shortcode/vendor_registration.php
Copy
), i have copied this file to (wp-content/themes/flatsome-child/MultiVendorX/shortcode/vendor_registration.php).
it’s evident that the
function is being used. This implies that user authentication is already being managed to determine whether a user is logged in or not.
Now, my objective is to modify the user’s role to “dc_pending_vendor” if they are logged in.