Skip to content
Docs
Get RestroPress

Filter

rpress_checkout_tips_in_payment_step

Updated
On this page

Filters whether the RestroPress Tips picker is moved into the checkout payment step.

Applies only when core finds the Tips extension callback rpress_tips_html_checkout hooked at priority 12 on the checkout form. When true, the picker moves to rpress_checkout_tip_slot above the payment methods. When false, it is hooked on rpress_purchase_form_after_user_info at priority 12.

Available since RestroPress 3.5.1.

Parameters#

ParameterTypeDescription
$moveboolTrue to move the picker. Default true.

Return value#

bool. Whether to move the picker.

Example#

add_filter( 'rpress_checkout_tips_in_payment_step', 'my_keep_tips_in_place', 10, 1 );
function my_keep_tips_in_place( $move ) {
	return false;
}

Notes#

Evaluated on init priority 30, so add the filter before then.

Source#

Applied in:

  • includes/features/checkout-flow/functions.php (line 113), in rpress_checkout_flow_adopt_tips()

See also#

Was this page helpful?