Filter
rpress_order_details_hide_page_title
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#
| Parameter | Type | Description |
|---|---|---|
$hide | bool | True 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), inrpress_order_details_body_class()
Was this page helpful?
