Automattic\WooCommerce\Blocks\BlockTypes
ProductButton::get_view_cart_html
Get the view cart link html.
Метод класса: ProductButton{}
Хуков нет.
Возвращает
Строку. The view cart html.
Использование
// private - только в коде основоного (родительского) класса $result = $this->get_view_cart_html();
Код ProductButton::get_view_cart_html() ProductButton::get view cart html WC 10.3.6
private function get_view_cart_html() {
return sprintf(
'<span
hidden
data-wp-bind--hidden="!state.displayViewCart"
>
<a
href="%1$s"
class="added_to_cart wc_forward"
title="%2$s"
>
%3$s
</a>
</span>',
esc_url( wc_get_cart_url() ),
esc_attr__( 'View cart', 'woocommerce' ),
esc_html__( 'View cart', 'woocommerce' )
);
}