Skip to content
Docs
Get RestroPress

Filter

rpress_print_text

Updated
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#

ParameterTypeDescription
$textstringButton 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), in RPRESS_Print_Receipts::get_print_action()

See also#

Was this page helpful?