Inventory_Presser_Plugin::add_view_details_button()
Outputs a View Details link that takes users to a single vehicle page.
Return Return
(void)
Source Source
File: inventory-presser.php
public function add_view_details_button() {
$css_classes = apply_filters(
'invp_css_classes_view_details_button',
array(
'wp-block-button__link',
'btn',
'button',
)
);
printf(
'<a class="%s" href="%s" title="%s">%s</a>',
esc_attr( implode( ' ', $css_classes ) ),
esc_url( get_the_permalink() ),
esc_attr( get_the_title() ),
esc_html__( 'View Details', 'inventory-presser' )
);
}
Expand full source codeCollapse full source codeView on Github