Automattic\WooCommerce\Blocks\BlockTypes
Wishlist::get_add_to_cart_label
Visible label for the add-to-cart action button, used by both the iAPI <template> and the SSR per-row markup.
Метод класса: Wishlist{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
// private - только в коде основоного (родительского) класса $result = $this->get_add_to_cart_label(): string;
Код Wishlist::get_add_to_cart_label() Wishlist::get add to cart label WC 11.3.0
private function get_add_to_cart_label(): string {
return __( 'Add to cart', 'woocommerce' );
}