Skip to main content

fc_pro_cart_removed_item_undo_button_label

Type: Filter

Filters the label for cart removed item undo button.

Signature​

apply_filters( 'fc_pro_cart_removed_item_undo_button_label', $label );

Parameters​

NameTypeDescription
$labelstringLabel text.

Since​

  • 1.3.0

Source: inc/cart-ajax.php

Examples​

add_filter( 'fc_pro_cart_removed_item_undo_button_label',
/**
* Customize undo button label.
*
* @param string $label Label text.
* @return string Filtered value.
*/
function( $label ) {
return __( 'Restore item', 'text-domain' );
},
10
);