vapvarun
Apr 20th, 2025 (edited)
42
0
Never
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