Skip to content
Docs
Get RestroPress

Filter

rpress_checkout_personal_info_text

Updated
On this page

Filters the legend text of the checkout contact section.

Runs in rpress_user_info_fields() for the legend of the contact fieldset. The default is "Contact". The value is escaped on output.

Parameters#

ParameterTypeDescription
$textstringThe default legend text.

Return value#

string. The legend text.

Example#

function my_personal_info_text( $text ) {
	return __( 'Your details', 'my-textdomain' );
}
add_filter( 'rpress_checkout_personal_info_text', 'my_personal_info_text', 10, 1 );

Notes#

The parameter is the already-translated default string; the escaping of the returned value is done by the caller.

Source#

Applied in:

  • includes/checkout/template.php (line 287), in rpress_user_info_fields()
Was this page helpful?