Skip to content
Docs
Get RestroPress

Filter

rpress_order_details_hide_page_title

Updated
On this page

Filters whether order details pages hide the theme's page title.

On the order success page and pages containing the [rpress_receipt] shortcode, core adds the rp-order-details-page body class, which its stylesheet uses to hide common theme title elements. Return false to leave the class off. The filter is evaluated only on those pages.

Available since RestroPress 3.5.1.

Parameters#

ParameterTypeDescription
$hideboolTrue to hide the title. Default true.

Return value#

bool. Whether to add the body class.

Example#

add_filter( 'rpress_order_details_hide_page_title', 'my_keep_receipt_title', 10, 1 );
function my_keep_receipt_title( $hide ) {
	return false;
}

Source#

Applied in:

  • includes/features/checkout-flow/functions.php (line 223), in rpress_order_details_body_class()
Was this page helpful?