• Resolved kcservices5

    (@kcservices5)


    Hi!

    I’m trying to create a shortcode to get just the vendor’s shop description, but it returns nothing. Here’s what I’ve done so far:

    function vendors_description() {
    	global $WCFM, $WCFMmp;
    	$store_user = wcfmmp_get_store( $store_id );
    
    	$wcfm_shop_description = apply_filters( 'wcfmmp_store_about', apply_filters( 'woocommerce_short_description', $store_user->get_shop_description() ), $store_user->get_shop_description() );
    	
         echo 'Description: '.$wcfm_shop_description;
    }
    add_shortcode('vendorsdescription', 'vendors_description');

    Any help will be highly appreciated.

    • This topic was modified 4 years, 2 months ago by kcservices5.
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Get vendor’s description’ is closed to new replies.