Reply To: Compatibility with another plugin

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Compatibility with another plugin Reply To: Compatibility with another plugin

#8139

Yaseen
Participant

Hi Ernest,

This is Andrea's reply:

if( function_exists( 'YITH_Vendors' ) ){
$vendor_description = $vendor_logo = ”;
$vendor = yith_get_vendor( $term_id, 'vendor' );
if( $vendor->is_valid() ){
$vendor_description = $vendor->description;
$vendor_logo = get_avatar( $vendor->get_owner(), get_option( 'yith_vendors_gravatar_image_size', '62' ) );
}
}

this is the snippet of code to get the vendor logo and vendor description.

Thanks in advance,
Yaseen