Filter
rpress_edit_print_text
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#
| Parameter | Type | Description |
|---|---|---|
$text | string | Button 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), inRPRESS_Print_Receipts::add_meta_box()
See also#
Was this page helpful?
