Filter
rpress_print_text
On this page
Filters the HTML of the print button in the orders list.
Applied to the content of the print button rendered in the Print column of the order history table. The default is a dashicon span. The value is output as HTML without escaping, so any returned markup must be safe.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$text | string | Button inner HTML. |
Return value#
string. The button inner HTML.
Example#
function my_print_button_text( $text ) {
return esc_html__( 'Print', 'my-textdomain' );
}
add_filter( 'rpress_print_text', 'my_print_button_text' );
Source#
Applied in:
includes/class-rpress-print-receipts.php(line 137), inRPRESS_Print_Receipts::get_print_action()
See also#
Was this page helpful?
