This is comment for paste
Shortcode to display the current user's vendor store URL if they are a vendor
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
How to Use the Shortcode:
Basic usage in pages or posts:
[vendor_store_url]
With custom link text:
[vendor_store_url text="Visit My Chef Store"]
With custom CSS class:
[vendor_store_url text="My Chef Profile" class="chef-button"]
For Theme Developers:
To get just the URL in PHP (returns #
if not applicable):
<?php echo wbcom_get_wcfm_vendor_store_url(); ?>
For a specific user:
<?php echo wbcom_get_wcfm_vendor_store_url($user_id); ?>
This code aligns with your existing practices in the theme and maintains the naming convention you're using with other functions like wbcom_add_ld_instructor_role()
.
Add Comment
Please, Sign In to add comment