Skip to content
Docs
Get RestroPress

Action

rpress_before_terms

Updated
On this page

Fires before the terms and conditions text on checkout.

Runs in rpress_terms_agreement() inside the hidden terms container, before the agreement text. It only fires when the agree-to-terms option is on and the agreement text is not empty.

Example#

function my_before_terms() {
	echo '<h4>' . esc_html__( 'Terms of sale', 'my-textdomain' ) . '</h4>';
}
add_action( 'rpress_before_terms', 'my_before_terms', 10, 0 );

Source#

Fired from:

  • includes/checkout/template.php (line 1024), in rpress_terms_agreement()

See also#

Was this page helpful?