Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_shortcode('wcfm_show_vendor', function($attr) {
- global $WCFMmp;
- $vendor_id = isset($attr['id']) && intval($attr['id']) ? absint($attr['id']) : 0;
- if($vendor_id && wcfm_is_vendor($vendor_id)) {
- ob_start();
- ?>
- <div id="wcfmmp-stores-wrap" class="top-vendor-container">
- <div class="wcfmmp-stores-content">
- <ul class="top-vendor-list wcfmmp-store-wrap">
- <?php
- $args = array('per_row' => 1);
- $args['store_id'] = $vendor_id;
- $WCFMmp->template->get_template( 'store-lists/wcfmmp-view-store-lists-card.php', $args );
- ?>
- </ul>
- </div>
- </div>
- <?php
- $list = ob_get_contents();
- ob_end_clean();
- return $list;
- }
- return;
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement