Skip to main content

fc_checkout_login_separator_text

Type: Filter

Filters the separator text in the checkout login prompt.

Signature​

apply_filters( 'fc_checkout_login_separator_text', $text );

Parameters​

NameTypeDescription
$textstringText to display.

Since​

  • 1.2.0

Source: templates/fc/checkout-steps/checkout/form-contact-login.php

Examples​

add_filter( 'fc_checkout_login_separator_text',
/**
* Customize login separator text.
* This will override the default text in both scenarios (guest checkout enabled/disabled)
*
* @param string $text Text to display.
* @return string Filtered value.
*/
function( $text ) {
// This will be used regardless of guest checkout setting
return __( 'Or continue with your purchase', 'my-theme' );
},
10
);