Inventory_Presser_Plugin::add_view_details_button()

Outputs a View Details link that takes users to a single vehicle page.


Return Return

(void)


Top ↑

Source Source

File: inventory-presser.php

	public function add_view_details_button() {
		if ( ! in_the_loop() ) {
			return;
		}

		$css_classes = apply_filters(
			'invp_css_classes_view_details_button',
			array(
				'wp-block-button__link',
				'button',
			)
		);
		?><a class="<?php echo esc_attr( implode( ' ', $css_classes ) ); ?>" href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php esc_html_e( 'View Details', 'inventory-presser' ); ?></a>
		<?php
	}