Is there an easy why to add a new column in the vendor listings page?

I would like to add a new button/hyperlink on the right of the eye icon: <i class="hp-icon fas fa-eye"></i> in the listings page of the vendor.

Is there any easy way to do this?

Sorry for the delay.

It’s possible, but requires code customizations. If you’re familiar with coding, please try using the hivepress/v1/templates/listing_edit_block filter hook to extend the default listing template (each row in the listings table uses this template). You can find some samples here Search · user:hivepress templates · GitHub

Interesting customization resource.

Thanks for sharing.

1 Like

Thanks, Ihor.

Here is a working example:

add_filter(
	'hivepress/v1/templates/listing_edit_block',
	function( $template ) {
		return hivepress()->helper->merge_trees(
			$template,
			[
				'blocks' => [
					'listing_container' => [
						'blocks' => [
							'listing_actions_primary_2' => [
								'type'       => 'container',
								'tag'        => 'td',
								'_order'     => 1100,
								'blocks' => [
								'custom_url' => [
									'type'    => 'content',
									'content' => '<p style="font-size: 14px;"><a href="example-url"> Example-url </a></p>',
									'_order'  => 1600,
												],
											],
								],
							],
						],
					],
				]
		);
	}
);

I think it would be useful to add a new column where users can hide or show listings directly from the listing table. Currently, it is necessary to enter a specific listing to hide or show it.

I will attempt to modify this filter to accommodate this functionality.

Thanks and best regards,