Skip to content
Docs
Get RestroPress

Filter

rpress_cart_edit

Updated
On this page

Filters the Edit label on sidebar cart items.

Runs in the sidebar cart item template when the Edit link text is printed. The default is the translated string "Edit". The value is printed with esc_html().

Parameters#

ParameterTypeDescription
$labelstringThe link label.

Return value#

string. The link label.

Example#

function my_cart_edit_label( $label ) {
	return __( 'Change', 'my-textdomain' );
}
add_filter( 'rpress_cart_edit', 'my_cart_edit_label' );

Source#

Applied in:

  • templates/cart/item.php (line 44)

See also#

Was this page helpful?