Adding verified class to vendor view block container

Hi all,

I’m wanting to add a “verified” class to the vendor container in vendor_view_block if the vendor is verified.

I have the following code but not sure how to make it so that only verified vendors will have this added class.

// Add Verified Class to Vendor View Block
add_filter('hivepress/v1/templates/vendor_view_block', function($template) { 
    return hivepress()->helper->merge_trees( $template, [ 
        'blocks' => [
            'vendor_container' => [
                'attributes' => [
                    'class' => [ 'hp-vendor', 'hp-vendor--view-block', 'verified' ],

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.