Automattic\WooCommerce\Blocks\BlockTypes
AddToCartWithOptionsVariationSelector::get_reset_button_row()
Get reset button row HTML.
Метод класса: AddToCartWithOptionsVariationSelector{}
Хуки из метода
Возвращает
Строку
. Row HTML
Использование
// private - только в коде основоного (родительского) класса $result = $this->get_reset_button_row(): string;
Код AddToCartWithOptionsVariationSelector::get_reset_button_row() AddToCartWithOptionsVariationSelector::get reset button row WC 9.8.5
private function get_reset_button_row(): string { return sprintf( '<tr><td colspan="2">%s</td></tr>', wp_kses_post( /** * Filter the reset variation button. * * @since 9.7.0 */ apply_filters( 'woocommerce_reset_variations_link', sprintf( '<button class="reset_variations" aria-label="%1$s">%2$s</button>', esc_html__( 'Clear options', 'woocommerce' ), esc_html__( 'Clear', 'woocommerce' ) ) ) ) ); }