Skip to content
Docs
Get RestroPress

Filter

rpress_edit_print_text

Updated
On this page

Filters the label of the print button on the order details screen.

Applied in RPRESS_Print_Receipts::add_meta_box() to the label of the Print button. The value is escaped with esc_html() after filtering, so it should be plain text.

Parameters#

ParameterTypeDescription
$textstringButton label, Print by default.

Return value#

string. The button label.

Example#

function my_edit_print_text( $text ) {
	return __( 'Print kitchen ticket', 'my-textdomain' );
}
add_filter( 'rpress_edit_print_text', 'my_edit_print_text' );

Source#

Applied in:

  • includes/class-rpress-print-receipts.php (line 155), in RPRESS_Print_Receipts::add_meta_box()

See also#

Was this page helpful?